.Net

Can make a call from HTML button to server side page

Can make a call from HTML button to server side page, someone asked me to explain?

You can call any server side control by defining runut=”server” and onServerClick for HTML button and you can not do with asp button.

  <button runat="server" onserverclick="Button1_Click">click me</button>
            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
   


     
protected void Button1_Click(object sender, EventArgs e)

        {
        }

Post your comments / questions