Difference between LabelFor and DisplayFor
suppose you have a property model like this:
[Display("Name:")]
public string Name{get;set;}
and you need to show in your view like this:
Name: Mohammad
then you can do this:
@HTML.LabelFor(m=>m.Name)// this will show "Name:"
@Html.DisplayFor(m=m>m.Name)// this will show (read only) "Mohammad"