RadioButtonList inside Repeater

R

robk

Hi,
I'm using Repeater control which is bounded to DataSet.
Problem is when page is loaded radiobuttons aren't showing and
its direction is stil horizontal.
Any sugestions apprettiated.
Thx
Bob

This is HTML code:
....
<asp:Repeater id="rQ" runat="server" DataSource="<%# dsQueAns %>">

<ItemTemplate>

<table>

<tr>

<td><b><%# DataBinder.Eval(Container.DataItem, "Question") %></b></td>

</tr>

</table>

<asp:RadioButtonList ID="rblOdg" DataSource="<%# dsQueAns %>"
RepeatLayout="Table" EnableViewState="True" RepeatDirection="Vertical"

TextAlign="Left" AutoPostBack="False">

<asp:ListItem Selected="False">

<%# DataBinder.Eval(Container.DataItem, "Ans_1") %>

</asp:ListItem>

<asp:ListItem Selected="False">

<%# DataBinder.Eval(Container.DataItem, "Ans_2") %>

</asp:ListItem>

<asp:ListItem Selected="False">

<%# DataBinder.Eval(Container.DataItem, "Ans_3") %>

</asp:ListItem>

<asp:ListItem Selected="False">

<%# DataBinder.Eval(Container.DataItem, "Ans_4") %>

</asp:ListItem>

</asp:RadioButtonList>

</ItemTemplate>

</asp:Repeater>
 

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

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,698
Latest member
LydiaHalle

Latest Threads

Top