Hello
I am trying to stop a postback to the server with the following scripting:
And i am calling this function like this:
But unfortunately the spotback does happen. Any ideas?
I am trying to stop a postback to the server with the following scripting:
Code:
function CheckDateUpdate()
{
var radio1 = document.getElementById('<%= rbYesDates.ClientID %>');
var label = document.getElementById('<%= lblWarning.ClientID %>');
if (radio1.checked == false)
{
label.text = "A choice whether to update or not must be made."
return false;
}
else
{
label.text = ""
return true;
}
}
And i am calling this function like this:
Code:
<asp:Button cssclass="submit" onmouseup="CheckDateUpdate()" ID="btnSubmit" Runat=server Text="Submit"></asp:Button>
But unfortunately the spotback does happen. Any ideas?