Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
i have a radio buttonlist, which is populated from an xml file at runtime so sometimes, the text of an entry is repeated one or more times. in those cases, when you selected a repeated entry, it selects the first one with that text. how do i stop it from going to the first entry?
  • 4 weeks later...
Posted
Its because they have the same value. Each item in the radiobutton list has a text property and a value property. If 2 items have the same value, selecting any will always select the first one. Try setting unique values for each item...

Proudly a Palestinian

Microsoft ASP.NET MVP

My Blog: wessamzeidan.net

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...