Retrieve value from hidden/disabled DropDownList?

  • Thread starter Thread starter Cipher
  • Start date Start date
C

Cipher

I've got a DropDownList control on my ASP.Net page and I cannot retrieve
it's value (via its SelectedValue property) if the control is hidden or
disabled. Once I set the control to visible and enabled then the currently
selected value is available in code.

Any ideas how I can hide or disable a DropDownList but still retrieve its
value as I don't want the users to be able to directly change its value.

Thanks in advance.
 
Back
Top