Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3933
  • Last Modified:

DropDownList - ReadOnly or Lock property ???

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
newbreedcc
Asked:
newbreedcc
  • 3
1 Solution
 
newbreedccAuthor Commented:
This is an asp.net (vb.net) app in case you wondered.
0
 
newbreedccAuthor Commented:
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
 
newbreedccAuthor Commented:
Please close and refund this one fellas, (solution - see above)
Thanks
0
 
moduloCommented:
Closed, 125 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now