W
WilsonSmith
Hello All,
My development environment is as follows:
ASP.Net App with .Net Framework 1.1 with VB.net
I have added the code in the page load event for non post back activity.
MyButton.Attributes("onclick") = "javascript:return confirm('You
will loose all data. Do you want to continue?');"
When the user clicks on MyButton and chose "Cancel" button, still the
MyButton clicked event is getting called at the server side. I want to call
this server side code only when the user selects OK button.
What is wrong in the code?
Wilson
My development environment is as follows:
ASP.Net App with .Net Framework 1.1 with VB.net
I have added the code in the page load event for non post back activity.
MyButton.Attributes("onclick") = "javascript:return confirm('You
will loose all data. Do you want to continue?');"
When the user clicks on MyButton and chose "Cancel" button, still the
MyButton clicked event is getting called at the server side. I want to call
this server side code only when the user selects OK button.
What is wrong in the code?
Wilson