J
Jack Black
OK, I've got a basic webform set up, with several buttons that I want to
trigger different things on when they're clicked. For example, when the
onClick event is triggered on one, I want a javascript method to fire and
open a new window, redirecting to either another page on my site or a page
off-site.
1) How do I do this? A traditional "onclick" event on the control line
doesn't work, and setting up the CommandName/CommandArgument properties
doesn't work either.
2) How can I do something WITHOUT a button performing a SUBMIT action??
I've tried wiring up the CommandName/OnClick/OnCommand events, and they
either don't call the method (if in the same script) or I get an error
telling me the "name isn't defined" (if the method IS defined in a
code-behind page)...
Thanks!
Jack
trigger different things on when they're clicked. For example, when the
onClick event is triggered on one, I want a javascript method to fire and
open a new window, redirecting to either another page on my site or a page
off-site.
1) How do I do this? A traditional "onclick" event on the control line
doesn't work, and setting up the CommandName/CommandArgument properties
doesn't work either.
2) How can I do something WITHOUT a button performing a SUBMIT action??
I've tried wiring up the CommandName/OnClick/OnCommand events, and they
either don't call the method (if in the same script) or I get an error
telling me the "name isn't defined" (if the method IS defined in a
code-behind page)...
Thanks!
Jack