i have one html form and this form having 2 buttons for yes or no clicks.
and one more button for submit the entire form.
my task is,
firstly,i have clicked No button, if i click yes button again,
this should be alerted as No button has been clicked already do you want to change your decision.
Thanks
Ravi Gaddam
Riddhi ValechaPosted Sep 27, 2013, 4:40 AM
This code worked for me... try it out...
<script type = "text/javascript">
function SetSource(SourceID)
{
var hidSourceID =
document.getElementById("<%=hidSourceID.ClientID%>");
hidSourceID.value = SourceID;
}
script>
---
<asp:Button ID="Button1" runat="server" Text="Button"
OnClientClick = "SetSource(this.id)" />
--
Riddhi ValechaPosted Sep 27, 2013, 4:38 AM
Hi..
This code worked for me... try it out...
<script type = "text/javascript">
function SetSource(SourceID)
{
var hidSourceID =
document.getElementById("<%=hidSourceID.ClientID%>");
hidSourceID.value = SourceID;
}
script>
---
<asp:Button ID="Button1" runat="server" Text="Button"
OnClientClick = "SetSource(this.id)" />
--