473,320 Members | 1,838 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.

radiobuttonlist with groupname?

Howdy

I've got 2 asp.net radiobuttonlists that I've separated for presentation
reasons, is there any way to link them together as one 'named' list as per
the groupname feature for individual asp.net radiobuttons? I tried that
property but it doesn't seem to work.

I want only one option to be selectable between the 2 lists.
Thanks
Matt
Nov 19 '05 #1
3 3877
Hi Matt,

I am not aware of any way to do this elegantly with the standard asp.net
components.

You could try rolling your own but its unlikely to be very easy or elegant
as you will still have to query both lists on the server to find the
"selected value" (unless you request the raw group name from the request.form
or request.querystring collections (thinking out loud...)).

You could possibly do something with client side scripting but again it will
be nasty.

I hope you find your solution.. jd

"Matt Jensen" wrote:
Howdy

I've got 2 asp.net radiobuttonlists that I've separated for presentation
reasons, is there any way to link them together as one 'named' list as per
the groupname feature for individual asp.net radiobuttons? I tried that
property but it doesn't seem to work.

I want only one option to be selectable between the 2 lists.
Thanks
Matt

Nov 19 '05 #2
Cheers jd
Guess I'll resort to the non-list .net control then
Thanks
matt

"london calling" <lo***********@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Hi Matt,

I am not aware of any way to do this elegantly with the standard asp.net
components.

You could try rolling your own but its unlikely to be very easy or elegant
as you will still have to query both lists on the server to find the
"selected value" (unless you request the raw group name from the
request.form
or request.querystring collections (thinking out loud...)).

You could possibly do something with client side scripting but again it
will
be nasty.

I hope you find your solution.. jd

"Matt Jensen" wrote:
Howdy

I've got 2 asp.net radiobuttonlists that I've separated for presentation
reasons, is there any way to link them together as one 'named' list as
per
the groupname feature for individual asp.net radiobuttons? I tried that
property but it doesn't seem to work.

I want only one option to be selectable between the 2 lists.
Thanks
Matt

Nov 19 '05 #3
Hi Matt, Its just occured to me that you could use two repeaters and create a
checkbox within each repeater item which you could set the groupname for..
(assuming you are using databinding - it may not be worth it otherwise)

HTH jd

"Matt Jensen" wrote:
Cheers jd
Guess I'll resort to the non-list .net control then
Thanks
matt

"london calling" <lo***********@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Hi Matt,

I am not aware of any way to do this elegantly with the standard asp.net
components.

You could try rolling your own but its unlikely to be very easy or elegant
as you will still have to query both lists on the server to find the
"selected value" (unless you request the raw group name from the
request.form
or request.querystring collections (thinking out loud...)).

You could possibly do something with client side scripting but again it
will
be nasty.

I hope you find your solution.. jd

"Matt Jensen" wrote:
Howdy

I've got 2 asp.net radiobuttonlists that I've separated for presentation
reasons, is there any way to link them together as one 'named' list as
per
the groupname feature for individual asp.net radiobuttons? I tried that
property but it doesn't seem to work.

I want only one option to be selectable between the 2 lists.
Thanks
Matt


Nov 19 '05 #4

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

Similar topics

6
by: Hazzard | last post by:
I store radiobuttonlist values in the db using the string value of the radio button item value. (nvarchar) I am creating an edit functionality on the asp.net form so that when I reuse my...
4
by: Emil | last post by:
Can somebody tell me what would be the syntax for having an if statement and setting the selected index of a radiobuttonlist? This is my first project using ASP.net and I use C#. I have a repeater...
1
by: Steven K | last post by:
Hello, Currently I am using RadioButtons for the following. However, I would like to use the RadioButtonList. My problem is I need to have each RadioButton in its own cell. My question is how...
0
by: Nevyn Twyll | last post by:
I have a set of radiobuttons that I want to put as an element in a Datalist. But I need the radiobuttons to have a very particular look, so I can't use the RadioButtonList class. So, I made a user...
5
by: Mike Salter | last post by:
I created a page that reads a DB for questions and possible answers (usuallyYes/No). I create a panel for each group of questions, and add a panel for each question to the Group panel. To the...
4
by: Oleg | last post by:
I have a RadioButtonList with layout vertical. And having 2 columns. Let's say I have 6 items. It will create this look: o o o o o o What I want is to look like: o o o o
3
by: visual2005beta_developer | last post by:
I have the following problem (especially with the groupname-attribut of the RadioButton-Control) when developing in Visual Studio 2005 Beta. I load an ascx-control in an aspx-page. This...
1
by: Chris Ashley | last post by:
I need to put a number of RadioButtons in a table as part of a RadioButtonList but keep getting errors whenever my RadioButtonList tag contains any table-related tags: ...
3
by: Brian | last post by:
Using external XML, I'm trying to build a quiz, but I can't seem to specify the DataSource for the RadioButtonList within a Repeater ItemTemplate. I've tried a number of approaches, but I haven't...
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
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: 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...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.