473,320 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Selected item in RadioButtonList

My RadioButtonList has items with similar values. N/A has a value of 0;
Sometimes also has a value of 0; Never has a value of 1, etc.

I'm running into a huge problem in that if the selected item is Sometimes
(which is second in the list), the rbl.SelectedItem.Text property always
returns N/A instead (which is first in the list).

I'm getting a sick feeling that the control is returning the first item with
the value of 0, instead of the one that is really selected. I can't change
the values for these questions to be unique, and I don't want to use separate
radio buttons (I have over 100 questions that are multiple choice answers!).

Can someone help me resolve this? Is there a way to use the rbl with
non-unique values?
Nov 19 '05 #1
2 2058
WJ

"Richard" <Ri*****@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
My RadioButtonList has items with similar values. N/A has a value of 0;
Sometimes also has a value of 0; Never has a value of 1, etc.
You cannot do this. it is not possible in a Radio Button Group, each item
is unique. Because you can select only one item.
Can someone help me resolve this? Is there a way to use the rbl with
non-unique values?


Use Check List istead. This will allow you multiple choices.

John
Nov 19 '05 #2
Thanks WJ. A checklist won't work because I don't want to allow multiple
selections (I goofed when I originally used that phrase--I meant that it
would be a lot of work because each question had more than Yes/No options.
The user has to choose only 1 out of 6 items).

"WJ" wrote:

"Richard" <Ri*****@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
My RadioButtonList has items with similar values. N/A has a value of 0;
Sometimes also has a value of 0; Never has a value of 1, etc.

You cannot do this. it is not possible in a Radio Button Group, each item
is unique. Because you can select only one item.
Can someone help me resolve this? Is there a way to use the rbl with
non-unique values?


Use Check List istead. This will allow you multiple choices.

John

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: juststarter | last post by:
Hello, I have an aspx file where i've put a placeholder element. On load i create dynamically a table which contains a checkbox and a radiobuttonlist in each tablerow . The radiobuttonlist...
2
by: mg | last post by:
After a selection is made in the following RadioButtonList <asp:RadioButtonList id="RadioButtonList1" runat="server"> <asp:ListItem Value="Y"></asp:ListItem> <asp:ListItem...
0
by: Jay | last post by:
I have a radiobuttonlist like so <asp:RadioButtonList id=radType RepeatDirection="Horizontal" cellpadding="10" cellspacing="0" runat="server"><asp:ListItem value="Something1"><font...
3
by: Dot net work | last post by:
Is it possible to have a radiobuttonlist control appear on a webform without any radio buttons checked to begin with? I would really like to make sure that the user specifically chooses a radio...
4
by: krzysiek | last post by:
hello, i have several radiolists and checkboxlist that are generated dinamicly based on datasource. So frankly speaking i don't know names and number of that web controls cose they are always...
4
by: juststarter | last post by:
Hello, I have an aspx file where i've put a placeholder element. On load (page_load) i create dynamically an html table which contains a checkbox and a radiobuttonlist in each tablerow . The...
1
by: Groove | last post by:
I've searched numerous threads and posts and can't seem to find a fitting answer. Hopefully this is simple - it seems very simple. I'm trying to set a SelectedValue of a RadioButtonList to a...
2
by: Vahagn | last post by:
Hi, how do I retrieve the chosen value from a RadioButtonList? I have a RadioButtonList that is populated dynamically with a "Next" button. Ie, I have a list of questions each with 2-3 answer...
6
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.