Loop threw datalist

  • Thread starter Thread starter dfetrow410
  • Start date Start date
D

dfetrow410

How do I do this. I need to only get the HTML radio's and there
selected values
 
foreach (DataListItem item in DataListControl.Items )
{
RadioButton rd = item.FindControl("radio_ID") as RadioButton ;
bool selected = rd.Checked;
// process

}

HTH

Elton Wang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top