Solved

Setting a radiobuttonlist to readonly (not enabled=false)

Posted on 2007-11-26
3
4,578 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to learn more about SecurityProtocolType.Tls12 3 29
Question about JQuery and asp.net 3 27
MVC DDL Json Not Binding to Model 2 13
Convert datetime to time string 10 21
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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