Html.DropDownList - Disabled/Readonly

Posted by ETFairfax on Stack Overflow See other posts from Stack Overflow or by ETFairfax
Published on 2009-10-28T09:32:43Z Indexed on 2010/04/27 16:33 UTC
Read the original article Hit count: 283

Filed under:

Hi,

What option do I need to set to make a drop down box readonly when using MVCs Html.DropDownList?

I've tried things like....

Html.DropDownList("Types", Model.Types, new { _Enabled = "false" })

...and many different things along this line; alas no joy!

I thought this would be an easy.....and it probably is!!!!!

Thanks,

ETFairfax.

© Stack Overflow or respective owner

Related posts about asp.net-mvc