Solved

DropDownList   - ReadOnly or Lock property ???

Posted on 2004-09-10
4
3,930 Views
Last Modified: 2006-11-17
Hi,

I populate a dropdownlist with values then based on userrole I would to:
 - set a selectedvalue and "lock" (readonly = true)  OR
 - give the user the ability to select any value of the list

However unlike the textbox the dropdownlist does not have a readonly property, hence I could go and change the datasource behind to reflect the selectable values, however that would be the LONG way round, was just hoping someone has a -- quickfix (lock, readonly or something)?

Need this rather quick..
Thanks!

0
Comment
Question by:newbreedcc
[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
  • 3
4 Comments
 
LVL 1

Author Comment

by:newbreedcc
ID: 12026125
This is an asp.net (vb.net) app in case you wondered.
0
 
LVL 1

Author Comment

by:newbreedcc
ID: 12026188
Ok, I simply set    enabled = false   and that way can still pull the value off her, seems to be working.... guess i should have thought about that earlier :)
0
 
LVL 1

Author Comment

by:newbreedcc
ID: 12026208
Please close and refund this one fellas, (solution - see above)
Thanks
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12057941
Closed, 125 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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