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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sal RosalesPosted May 22, 2008, 6:29 PM
ok, I just throught there might have been a If (control is not checkbox). An else statement it will be.
thanks
Niradhip ChakrabortyPosted May 22, 2008, 4:47 PM
{
if (control is CheckBox)
{
// you know code here for control which is checkbox
}
else
{
// you know code here for control which is not checkbox
}
}