Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RadioButtonList in a repeater

Thread Tools

RadioButtonList in a repeater

David Davis
Posts: n/a
When I have an asp:radiobuttonlist control in a repeater
and I want to dynamically preset a ListItem's selected
property to true or false, I get an error message that
says "BC30676: 'DataBinding' is not an event
of 'System.Web.UI.WebControls.ListItem'."

Can anyone tell me what the solution or work around is for
this? My HTML is below.

Thanks, --David

<asp:repeater id="rptQuestions" runat="server">

<asp:radiobuttonlist id="optAnswer" runat="server">
<asp:ListItem Value="1" Selected='<%# Container.DataItem
("SelectedYes") %>'>Yes</asp:ListItem>
<asp:ListItem Value="0" Selected='<%# Container.DataItem
("SelectedNo") %>'>No</asp:ListItem>
<%# Container.DataItem("Question") %>


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RadioButtonList value in repeater IFIA ASP .Net 0 03-13-2008 04:06 PM
Handling Radiobuttonlist event inside Repeater Control Ravi ASP .Net 2 08-18-2006 06:56 AM
Repeater + RadioButtonList Guldo K ASP .Net Building Controls 1 12-06-2005 08:06 PM
setting selecteditem item on databound radiobuttonlist in a repeater Rod Snyder ASP .Net 1 02-17-2005 03:49 AM
RadioButtonList in Repeater Control...Ouch Darren ASP .Net 1 09-28-2004 06:10 PM