Solved

DropDownList   - ReadOnly or Lock property ???

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

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

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 article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
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…

777 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