Hi all,
I am using asp.net webcontrols and wanted to know if I could add html client side event handlers that call javascript functions. For a prime example, I create a webcontrol button, when that is clicked I want it to call a javascript event handler that can return a false value and not have the page post back, or it can post the page back if I return true. I tried to just add the onClick=javascript function directly into the asp:button tag but that didn't work. Is this possible?
Thanks all. *** Any suggestions to my asp.net site would be great if your bored!
I am using asp.net webcontrols and wanted to know if I could add html client side event handlers that call javascript functions. For a prime example, I create a webcontrol button, when that is clicked I want it to call a javascript event handler that can return a false value and not have the page post back, or it can post the page back if I return true. I tried to just add the onClick=javascript function directly into the asp:button tag but that didn't work. Is this possible?
Thanks all. *** Any suggestions to my asp.net site would be great if your bored!