I am looking to handle the click event of an HTML <button> (not an <input type="button">) on the back end. The reason I want to handle a button is because the design I have has button controls all over the place, so to modify all of the CSS would be much more work.
For my button, I have:
<button type="submit" id="submit" runat="server">Send</button>
In my code behind, I have:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
submit.ServerClick += new EventHandler(submit_click);
}
}
protected void submit_click(object sender, EventArgs e)
{
// never being hit
}
Is this possible?