mvc DataAnnotations how to make field no editable in 3.5

Posted by frosty on Stack Overflow See other posts from Stack Overflow or by frosty
Published on 2010-05-20T17:41:28Z Indexed on 2010/05/20 18:10 UTC
Read the original article Hit count: 183

I have a few field in my entity that i wish to be non-editable. Looking in the docs it seems like "EditableAttribute" would do the trick. However this is only 4.0

Just wondering if there are other attributes that would have the desire effect. So be clear,

i have a field called "DateRegistered" i wish to display this as string not text field using "Html.EditorFor"

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc