A
Assimalyst
Hi,
I have a AutoPostBack checkbox and need to set a value bSubmitted =
true when the checkbox is checked in order to prevent a warning message
appearing notifying the user they are navigating away from the page.
I have been trying to add the following in the <script> section of the
<HEAD> section:
addNewSurgeonChkBx.Attributes.Add("onclick","Javascript:bSubmitted=true;");
But it does not seem to work, I still get the error message.
I have also tried to put it on the onLoad section of the C# CodeBehind,
here though it surpresses the error message for all controls, not just
the checkbox.
Any ideas of how to fix this?
Thanks.
I have a AutoPostBack checkbox and need to set a value bSubmitted =
true when the checkbox is checked in order to prevent a warning message
appearing notifying the user they are navigating away from the page.
I have been trying to add the following in the <script> section of the
<HEAD> section:
addNewSurgeonChkBx.Attributes.Add("onclick","Javascript:bSubmitted=true;");
But it does not seem to work, I still get the error message.
I have also tried to put it on the onLoad section of the C# CodeBehind,
here though it surpresses the error message for all controls, not just
the checkbox.
Any ideas of how to fix this?
Thanks.