Inside razor view I used model for rendering label like
@Html.LabelFor(model => model.MyName, htmlAttributes: new { @class = "control-label col-md-6" })
and now I want to use it's value instead of data annotation attr. value so I tried with DisplayFor like
@Html.DisplayFor(model => model.MyName, new { @class = "control-label col-md-6" })
this css class control-label col-md-6
is not apply.
Why?