Getting selected items in dynamically loaded checkbox list

  • Thread starter Thread starter Joel Reinford
  • Start date Start date
J

Joel Reinford

I am loading a checkbox list on a web form at runtime along with several
other controls. I am unable to get to the checkbox list on postback, I
always get an invalid cast exception. I have no trouble getting the other
controls including a dropdown list.

Any suggestions on what I could do would be appreciated.

Joel Reinford
 
please show how you are trying this.....
It should just be
string myVal = this.chkBoxName.SelectedItem.Value.ToString();
 
Back
Top