Hi everyone,
I have this if statement:
if (ctrl.Controls[0].Controls[0] is CheckBox)
What is the syntax to check if it is NOT a CheckBox?
thanks
Hi everyone,
I have this if statement:
if (ctrl.Controls[0].Controls[0] is CheckBox)
What is the syntax to check if it is NOT a CheckBox?
thanks
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted May 22, 2008, 12:47 PM EDT
{
if (control is CheckBox)
{
// you know code here for control which is checkbox
}
else
{
// you know code here for control which is not checkbox
}
}
Sal Rosales6 pointsPosted May 22, 2008, 2:29 PM EDT
ok, I just throught there might have been a If (control is not checkbox). An else statement it will be.
thanks