Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Radiobutton in listview

Posted on 2011-03-07
3
Medium Priority
?
1,310 Views
Last Modified: 2012-05-11
Helllo folks I need some help.
I've a listview with a radiobutton (single), then run my page, and when I select one radiobutton, I can select all the other radiobutton in the listview. So I can have all selected and that's impossible.
I tried everything.

Here is my code

Thanks in advanced for any help
<asp:ListView ID="lvOfrendas" runat="server" DataSourceID="odsOfrendas" EnableModelValidation="True">
        <EmptyDataTemplate>
            <span><br /></EmptyDataTemplate>
        <LayoutTemplate >
            <asp:PlaceHolder id="itemPlaceholder" runat="server" />
        </LayoutTemplate>          
        <ItemTemplate>     

             <label>
                 <asp:HiddenField ID="HiddenImgId" Value='<%# eval("ImgIdCyO") %>' runat="server" />
                
                 <asp:RadioButton ID="rb_img"  GroupName="of"   value='<%# eval("ImgIdCyO") %>' runat="server"  />
                 
                 <asp:Image ID="Img_Ofrenda" ImageUrl='<%# "../imagenes/" & eval("ImgNombre") %>' runat="server" />
             </label>

        </ItemTemplate>
    </asp:ListView>

Open in new window

0
Comment
Question by:nkoriginal
2 Comments
 
LVL 5

Accepted Solution

by:
Kelmen earned 2000 total points
ID: 35063586
10 radio buttons with 1 single same groupname, you only can pick 1
if you want to be able to select all 10, they need to have different groupname

use different groupname, and i believe you need more code to validate and properly manage them.

0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 35944471
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question