Groups | Blog | Home
all groups > asp.net webcontrols > march 2007 >

asp.net webcontrols : Repeater, RadioButton, GroupName doesn't work


David Thielen
3/9/2007 3:19:00 PM
Hi;

Inside a Repeater I have a RadioButton with the same GroupName for each row
in the Repeater. But when I click on a button, it does not turn off the other
radio button previously selected.

Any ideas how to fix this?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Manish Bafna
3/11/2007 12:00:00 AM
Hi,
This link provides solution to your problem/query.
http://www.codeguru.com/csharp/csharp/cs_controls/custom/article.php/c12371/
--
If my answer helped you,then please do press Yes below.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



[quoted text, click to view]
David Thielen
3/12/2007 7:08:08 AM
got it - thanks

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




[quoted text, click to view]
stcheng NO[at]SPAM online.microsoft.com
3/12/2007 10:07:02 AM
Hello Dave,

This is a known issue of ASP.NET template databound control(such as
repeater, DataList ...). When you put RadioButton in such control's
template, since its "groupName" is assigned a unique value each row,. Here
is the public kb article document this issue:

#BUG: Radio Buttons Are Not Mutually Exclusive When Used in a Repeater
Server Control
http://support.microsoft.com/kb/316495/en-us

I have ever posted some workaround code in the newsgroup. Here is the
weblink to it:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/brow
se_thread/thread/22a219fd383e8db0/0ca1cd975a6adf79

Hope this helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.







AddThis Social Bookmark Button