Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RadioButtonList in Repeater Control...Ouch

Reply
Thread Tools

RadioButtonList in Repeater Control...Ouch

 
 
Darren
Guest
Posts: n/a
 
      09-28-2004
Dear Groups,

I have searched EVERYWHERE on the net and msdn for a solution to my
problem and am coming up with nothing.

I simply need to capture the 'selected row' and the
rdoRate.SelectedItem.Value.

Thanks in advance...Darren

<asp:Repeater id="rptCharts" Runat="server">
<ItemTemplate>
<div class="searchcontainer">
<div class="lnkcol"><a href='../links/?urlid=<%#
DataBinder.Eval(Container.DataItem, "linkid")%>'><%#
DataBinder.Eval(Container.DataItem, "linkname")%></a>
</div>
<div class="ratecol"><%# DataBinder.Eval(Container.DataItem,
"votes")%></div>
<asp:RadioButtonList AutoPostBack="true" ID="rdoRate"
RepeatDirection="horizontal" Runat="server">
<asp:ListItem Value="1"></asp:ListItem>
<asp:ListItem Value="2"></asp:ListItem>
<asp:ListItem Value="3"></asp:ListItem>
<asp:ListItem Value="4"></asp:ListItem>
<asp:ListItem Value="5"></asp:ListItem>
</asp:RadioButtonList>
</div>
</ItemTemplate>
</asp:Repeater>
 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      09-28-2004
I do something similar like this:

foreach (RepeaterItem ri in this.rptrList.Items)
{
RadioButtonList myList=
((RadioButtonList ))ri.FindControl("rdoRate"));
...your stuff with this control here.....
}

Syntax isn't tested, off the top of my head, but you should get the idea
from here.....


--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Darren" <> wrote in message
news: m...
> Dear Groups,
>
> I have searched EVERYWHERE on the net and msdn for a solution to my
> problem and am coming up with nothing.
>
> I simply need to capture the 'selected row' and the
> rdoRate.SelectedItem.Value.
>
> Thanks in advance...Darren
>
> <asp:Repeater id="rptCharts" Runat="server">
> <ItemTemplate>
> <div class="searchcontainer">
> <div class="lnkcol"><a href='../links/?urlid=<%#
> DataBinder.Eval(Container.DataItem, "linkid")%>'><%#
> DataBinder.Eval(Container.DataItem, "linkname")%></a>
> </div>
> <div class="ratecol"><%# DataBinder.Eval(Container.DataItem,
> "votes")%></div>
> <asp:RadioButtonList AutoPostBack="true" ID="rdoRate"
> RepeatDirection="horizontal" Runat="server">
> <asp:ListItem Value="1"></asp:ListItem>
> <asp:ListItem Value="2"></asp:ListItem>
> <asp:ListItem Value="3"></asp:ListItem>
> <asp:ListItem Value="4"></asp:ListItem>
> <asp:ListItem Value="5"></asp:ListItem>
> </asp:RadioButtonList>
> </div>
> </ItemTemplate>
> </asp:Repeater>



 
Reply With Quote
 
 
 
Reply

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 a repeater David Davis ASP .Net 0 10-21-2003 05:56 PM



Advertisments