ASP Net Controls ASP.Net Tutorial

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

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write("Postback!");
    }


   function AlertHello()
   { 
      alert('Hello ASP.NET');
   }



    Button Server Control


    
                            Runat="server" 
                    Text="Button" 
                    OnClientClick="AlertHello()" 
                    OnClick="Button1_Click" />