CheckBoxes allow the user to make multiple selections from a number of options and CheckBoxes comes with a caption, which you can set in the Text property.

vb.net CheckBox1.Text = "CheckBox"
C# CheckBox1.Text = "CheckBox";
We can decide whether the checkbox is clicked or not by its checked property.
vb.net If CheckBox1.Checked = True Then
Label2.Text = "Checkbox Clicked "
End If
if (CheckBox1.Checked == true)
{
Label2.Text = "Checkbox Clicked";
}
The following ASP.Net program detect whether the Checkbox is clicked or not and display the message on Label control.
Default.aspx
Untitled Page
Click the following links to see full source code
C# Source Code
VB.NET Source Code
ASP.NET Web Controls - Related Contents
Advertisement
ASP.NET Related Topics