Hi,
I have some ASP.NET code that programatically writes a button onto the page, but I don't want this to be a submit button. I just want the button to fire a Javascript event. In other words I want to end up with the following HTML...
I would have thought Button server controls would have had an AutoPostBack property, but they don't (I'm using ASP.NET 1.0 here). Any ideas? I can't just write out the HTML above because I need this to be a server control.
Your help is appreciated!
Tom
I have some ASP.NET code that programatically writes a button onto the page, but I don't want this to be a submit button. I just want the button to fire a Javascript event. In other words I want to end up with the following HTML...
Code:
<input type="button" name="whatever" value="" />
I would have thought Button server controls would have had an AutoPostBack property, but they don't (I'm using ASP.NET 1.0 here). Any ideas? I can't just write out the HTML above because I need this to be a server control.
Your help is appreciated!
Tom
