Setting a radiobuttonlist to readonly (not enabled=false)

Hello experts,
When a radio button list is set to enabled=false, the color of the text is a gray.  I want to have it stay black.  How do I do it.
Thanks
Howard
Howard KatzDatabase Report DeveloperAsked:
Who is Participating?
 
RedKelvinConnect With a Mentor Commented:
Hi there

do it like this in VB
RadioButtonList1.Attributes("Onclick") = "return false;"

or C#
RadioButtonList1.Attributes["Onclick"] = "return false;";

if you are interested in the explanation, take a look at this
http://codebetter.com/blogs/peter.van.ooijen/archive/2005/09/28/132561.aspx

RedK
0
 
TommyTwoPintsCommented:
You could set the AutoCheck property to False
0
 
TommyTwoPintsCommented:
Sorry, ignore my comment. I didnt realise you were asking about asp.net. My solution is for winforms.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.