RadioButtonList

  • Thread starter Thread starter Franck Diastein
  • Start date Start date
F

Franck Diastein

Hi,

I have RadioButtonList for Yes/No

This are values:

<asp:ListItem Value="True">Yes</asp:ListItem>
<asp:ListItem Value="False" Selected="True">No</asp:ListItem>

rblQuestion.Items.FindByValue( _myObject.Question.ToString() ).Selected
= true;

I can't get Yes selected when _myObject.Question.ToString() is true

When I do this with ordinary string values, it works...

Any idea ?

TIA
 

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