Solved

Setting a radiobuttonlist to readonly (not enabled=false)

Posted on 2007-11-26
3
4,682 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

635 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