I have a doubt in checkbox field

Jul 13 2011 6:21 AM
I used only one check box, if i marked tat chechbox mean it ll display yes otherwise display no.pls help me....

{


if (CheckBox1.Checked !=null)
{
(CheckBox1.Text);

CheckBox1.Text = "yes";optselect = CheckBox1.Checked.ToString();


optselect = CheckBox1.Text = "yes";

}



else

{
 CheckBox1.Text = "no";


}




Answers (12)