ASP.NET(vb.net) & HTMLInputCheckBox - HTMLInputCheckBox : Creates a server-side control that maps to the <input type=checkbox> HTML element and allows you to a create check box control that lets the user select a true or false state.
ShotDev Focus:
- ASP.NET(vb.net) & HTMLInputCheckBox
Tag Control :
<input type=checkbox id="programmaticID" checked runat="server" >
Example
HTMLInputCheckBox.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Button1_OnClick(sender As Object, e As EventArgs) IF Me.CheckBox1.Checked = True Then Me.lblText1.Text = "Checkbox Checked" Else Me.lblText1.Text = "Checkbox Not Checked" End IF End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <input id="CheckBox1" type="CheckBox" runat="server"> Checked <input id="Button1" type="button" OnServerClick="Button1_OnClick" value="Button" runat="server" /> <hr /> <asp:Label id="lblText1" runat="server"></asp:Label> </form> </body> </html>
Screenshot