Solved

DropDownList   - ReadOnly or Lock property ???

Posted on 2004-09-10
4
3,928 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
  • 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

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…

820 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