I want to build a poll system in asp.net with Repeater control, in DB has 2 table (Polls, PollItems). and use this code for select poll:
var lstPoll = (from P in Conn.Polls.ToList()
orderby P.PollOrder
select new { P.Question, P.PollID, P.PollItems }).ToList();
RepeaterPoll.DataSource = lstPoll.ToList();
RepeaterPoll.DataBind();
PollItems table (P.PollItems) has PollItemID, PollAnswer parametr.
<asp:Repeater ID="RepeaterPoll" runat="server">
<ItemTemplate>
<%# Eval("Question")%>
<br />
<asp:RadioButtonList ID="rblItemPoll" runat="server" DataValueField='<%# Eval("PollItemID")%>' DataTextField='<%# Eval("PollAnswer")%>'></asp:RadioButtonList>
<br /><br />
</ItemTemplate>
</asp:Repeater>
but not Eval PollAnswer and PollItemID to rblItemPoll.
plase help me for build poll system.