G
Guest
I read the 4 or 5 threads on this Subject and it seems my javasript should
work but it doesn't. In the designer, the onClientClick is set to:
CheckForSave(this). This works in .Net 1.1 but not 2.0. The User is
presented with an OK or Cancel confirmation window. However, pressing Cancel
does not result in the button's post back being cancelled. In the meantime,
I'll try the other suggested methods.
Here is my javscript:
function CheckForSave(thisButton) {
if (confirm("Appointment Will Be Saved. Check Current Appointment box and
make sure it is correct. If so, you may navigate away or close your
browser.")==true) {
return true;
}
else {
return false;
}
}
work but it doesn't. In the designer, the onClientClick is set to:
CheckForSave(this). This works in .Net 1.1 but not 2.0. The User is
presented with an OK or Cancel confirmation window. However, pressing Cancel
does not result in the button's post back being cancelled. In the meantime,
I'll try the other suggested methods.
Here is my javscript:
function CheckForSave(thisButton) {
if (confirm("Appointment Will Be Saved. Check Current Appointment box and
make sure it is correct. If so, you may navigate away or close your
browser.")==true) {
return true;
}
else {
return false;
}
}