Author: MSUTech | Posted on: 2/8/2010 9:17:58 AM | Views : 275

I have the following line of code:
selecteditems.Add((cntr.FindControl("rbFederalClassifications") as RadioButtonList).SelectedItem.Text);
If I submit the page.. and no radio buttons were selected I get an error that 'object not set to an instance' ... is there a 'quick and easy' way to say ... if 'NO ITEMS WERE SELECTED' .. skip this... basically.. IF NULL... skip?

...

Go to the complete details ...