Hi All, is it possible to disable the submit behaviour of a server side button using Javascript? Note: I dont want to disable the button, the user will click the button but it will not submit/get any value from server.
scenario:
<asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click" OnClientClick="Check()" />
javascript:
enter code here function Check()
{
var res = confirm(" Are u sure whatYou have selected ")
if (res)
{
alert("yes");
}
else {
//Here I need to disable the submit behavoiur
}
}
}
}