How can i use HTML button like an ASP.NET Button?
Html tags attributed with runat="server" are called HtmlControls and you need to handle ServerClick event.
Markup
<button id="button1" runat="server" onserverclick="doIt" >Submit</button>
Code behind
protected void doIt(object sender, EventArgs e)
 {
   Response.Write("Hello World!!!");
 }
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With