Submit button click event : Button « HTML Controls « ASP.NET Tutorial






<script runat="server" language="C#" >
protected void MySubmitHandler(object o, EventArgs e) {
   inputText.Value = "GoodBye";
}
</script>
<html>
<form runat="server">
<input id="inputText" type="text" runat="server" value="Hello" />
<input type="submit" runat="server" value="Go" onServerClick="MySubmitHandler"/>
</form>
</html>








4.2.Button
4.2.1.Submit button click event
4.2.2.HTML Server Controls