kala-tamin mvc DataAnnotations how to make field no editable in 3.5
صفحه اصلي

mvc DataAnnotations how to make field no editable in 3.5



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"


Can I deny access to a Wordpress directory with MVC 2?

1:

Why won't my MVC project work after publishing it?
The [ReadOnly] attrialthough e should job in 3.5.. Specify/Disambiguate editor field form names with EditorFor<T>
Can I use an asp:Button like an Html.ActionLink?E-commerce site: ASP.NET or ASP.NET MVC?

2:

Is this a valid jquery callback function call?
Why are you using an editor template for any thing this should be read only? Display templates and the <%= Html.DisplayFor(x => x.DateRegistered) %> method seem more appropriate in this case.. Having POCOs, Entities and ViewModels in a solution feels like overkill
asp.net mvc html Drop down list helper isn't selecting option

97 out of 100 based on 62 user ratings 257 reviews