The problem that you are using a html element - input - in your aspx. For this the
onclick
is a client side event only...
Use ASP.NET button - for this
onclick
will translated into a server side event.
<asp:button runat="server" id="btnSubmit" onclick="btnSubmit_Click" xmlns:asp="#unknown" />