Solved

Setting a radiobuttonlist to readonly (not enabled=false)

Posted on 2007-11-26
3
4,538 Views
Last Modified: 2013-11-07
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
0
Comment
Question by:katzhoward
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
RedKelvin earned 500 total points
ID: 20354147
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
 
LVL 3

Expert Comment

by:TommyTwoPints
ID: 20700606
You could set the AutoCheck property to False
0
 
LVL 3

Expert Comment

by:TommyTwoPints
ID: 20700612
Sorry, ignore my comment. I didnt realise you were asking about asp.net. My solution is for winforms.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Syntax error 9 45
Resolve Dependency Issues 4 41
C# Single Form 8 26
Adware on IIS hosted asp.net website 1 11
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now