RadioButtonList in Repeater


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: RadioButtonList in Repeater

  1. #1
    Join Date
    Jan 2009
    Posts
    2

    Unhappy RadioButtonList in Repeater

    Hi..Can any1 help me in adding RadioButtonList in Repeater? As we have 2 add ListItem in RadioButtonList I tried it but its giving me error that ListItem is not allowed in databinding..Will any1 plz help me m really bugged with this error..

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX

    What is the code you are running that gives the error?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Jan 2009
    Posts
    2

    Re

    <asp:Repeater ID="repquestion" runat="server">

    <ItemTemplate>

    <asp:RadioButtonList ID="rbOption" runat="server" >
    <asp:ListItem Text='<&#37;# Eval("opt1") %>' />
    <asp:ListItem Text='<%# Eval("opt2") %>' />
    <asp:ListItem Text='<%# Eval("opt3") %>' />
    </asp:RadioButtonList>

    </ItemTemplate>

    </asp:Repeater>
    Last edited by ketaki; 01-13-2009 at 12:25 PM.

Similar Threads

  1. Repeater control with nested datagrids
    By vinu in forum ASP.NET
    Replies: 0
    Last Post: 01-04-2007, 12:46 PM
  2. Replies: 0
    Last Post: 05-08-2006, 09:02 PM
  3. Hyperlink Rollover images in Repeater error
    By naijacoder in forum ASP.NET
    Replies: 1
    Last Post: 01-30-2006, 04:21 AM
  4. Set focus on a element inside a repeater control
    By mannabaron in forum ASP.NET
    Replies: 1
    Last Post: 08-23-2005, 08:42 AM
  5. Listbox within a Repeater Issue
    By Craig in forum ASP.NET
    Replies: 1
    Last Post: 08-14-2002, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center