try adding runat = "server" to enter the button as shown:
* Note * runat = "server". While the asp: button button probably works the same way, if you really want it to be entered as an HTML button, you can use it. Yes, ASP.NET will get the server-side value. **
<input type="button" runat="server" id="btnTest" value="change" onclick="doPostBack('btnTest', '');"/>
source
share