ASP.NETASP.NET - Basic Controls


Syntax

  • <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Click" / > <asp:TextBox ID="txtstate" runat="server">
  • </asp:TextBox> <asp:CheckBox ID= "chkoption" runat= "Server"> </asp:CheckBox> <asp:RadioButton ID= "rdboption" runat= "Server"> </asp: RadioButton>
  • <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True"
    OnSelectedIndexChanged="ListBox1_SelectedIndexChanged"> </asp:ListBox>
  • <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
    OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>
  • <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
    OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"> </asp:RadioButtonList>
  • <asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True"
    OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged"> </asp:CheckBoxList>
  • <asp:BulletedList ID="BulletedList1" runat="server"> </asp:BulletedList>
  • <asp:HyperLink ID="HyperLink1" runat="server"> HyperLink </asp:HyperLink> <asp:Image ID="Image1" runat="server">