Render dropdown as text for particular action in ASP.NET MVC

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-05-19T20:08:50Z Indexed on 2010/05/19 20:10 UTC
Read the original article Hit count: 138

Filed under:
|

I have a partial view that I use for editing and creating my models. When a user is editing the model, I would like a particular drop-down to be rendered as text as I don't want them to change it. A read-only drop-down would suffice, but I'd prefer text.

I'm thinking I can accomplish this via an extension method, but I'm not quite sure how to get started. Any help would be appreciated!

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about c#