473,473 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

using radio button option in a repeater control

hi there,

i have a repeater which returns me a list of addresses in each repeaterItem
row.
at the end of each row i have a radiobutton, which i want the user to select
the "active" address.

However when i try selecting a radiobutton it does not deselect the others
in the repeater. I tried adding a "GroupName" property but it still doesnt
work.

I dont want to use the radiobuttonlist as i'm showing the addresses in a
table format.

Any help appreciated
thanks,
Paul
Mar 28 '07 #1
3 8228
On Mar 28, 6:04 pm, "Milsnips" <milsn...@hotmail.comwrote:
hi there,

i have a repeater which returns me a list of addresses in each repeaterItem
row.
at the end of each row i have a radiobutton, which i want the user to select
the "active" address.

However when i try selecting a radiobutton it does not deselect the others
in the repeater. I tried adding a "GroupName" property but it still doesnt
work.

I dont want to use the radiobuttonlist as i'm showing the addresses in a
table format.
In general terms you have to have the RadioButtons inside the SAME
(HTML) ELEMENT to be able to have them being part of the same group...
Thomas

--
http://ajaxwidgets.com
ASP.NET 2.0 Ajax Widgets

Mar 28 '07 #2
Actually, if you see the html source of the resultant page, you will
see that the radio buttons have different names inspite of assigning
the same group name.
Check out http://aspnet.4guysfromrolla.com/articles/122602-1.aspx
for a more detailed explanation.

Hope this helps.
Latish

Mar 29 '07 #3
Hi there,
yes i came across that problem and found a javascript solution to solve it.

thanks again,
Paul

"Latish Sehgal" <la***********@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
Actually, if you see the html source of the resultant page, you will
see that the radio buttons have different names inspite of assigning
the same group name.
Check out http://aspnet.4guysfromrolla.com/articles/122602-1.aspx
for a more detailed explanation.

Hope this helps.
Latish

Mar 29 '07 #4

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

Similar topics

6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
3
by: Jeremy Ames | last post by:
I am trying to use a datagrid to pull information from a database. I prefer to use latebinding to this. Well, I finally got my information to populate the datagrid, but the information came out in...
3
by: David Hearn | last post by:
I have a datalist that I have inserted a radio button into. The datalist populates with a list of items and each one has a radio button next to it. I need to use the radio button to allow the user...
1
by: SouthSpawn | last post by:
I know this is probably pretty trival. I am trying to put a radio button inside a repeater control. That will allow me to select each row one by one. Then once the user clicks on the submit...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
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...
3
by: teddysnips | last post by:
Back in the dim mists of antiquity I used to program in VBA for Microsoft Access (hey, don't knock it - very useful tool for the right application). This had a really handy control in the...
4
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see...
8
by: photoboy | last post by:
I have racked by brain long enough on this, so now I need the help of someone who knows what they are doing. Here is what I am trying to achieve: First, I have two radio buttons (both unchecked)...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.