• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3937
  • Last Modified:

DropDownList - ReadOnly or Lock property ???


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..

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

Community Support Moderator
Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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