CHECKBOX
CheckBox
event - True or False
Activity:
Step:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked == true)
{
TextBox1.Text = "Red";
}
else
{
TextBox1.Text = "";
}
}
Design
CheckBox1
TextBox1.Text
event - True or False
Activity:
- Event Activity
- Listener Activity
- Perform Activity
AutoPostBack = true
Step:
- Click on CheckBox.
- Make AutoPostBack = True of CheckBox.
- Write code on Checkbox.
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked == true)
{
TextBox1.Text = "Red";
}
else
{
TextBox1.Text = "";
}
}
Design
CheckBox1
TextBox1.Text