How to use HTML submit button as server control in asp.net

asp.net HTML server control example: how to use HTML submit button as server control
HTMLSubmitButton.aspx

<%@ Page Language="C#" %>

<!DOCTYPE html>

<script runat="server">
    protected void SubmitButton_Click(object sender, System.EventArgs e) {
        Label1.Text = "Your favorite author is: " +
            TextBox1.Text.ToString();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>asp.net HTML server control example: how to use HTML submit button as server control</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Red">HTML server control example: HTML submit button</h2>
        <asp:Label 
            ID="Label1" 
            runat="server" 
            Font-Size="Large"
            ForeColor="DodgerBlue"
            >
        </asp:Label>
        <br /><br />
        <asp:Label 
            ID="Label2" 
            runat="server" 
            ForeColor="HotPink"
            Text="Your Favorte Author"
            >
        </asp:Label>
        <asp:TextBox 
            ID="TextBox1" 
            runat="server" 
            ForeColor="Snow" 
            BackColor="HotPink"
            >
        </asp:TextBox>
        <br />
        <input 
            runat="server" 
            id="Button1" 
            type="submit" 
            value="Submit" 
            onserverclick="SubmitButton_Click"
            />
    </div>
    </form>
</body>
</html>
More asp.net examples