I hope someone out there has some ideas. I would like to tidy up my code and so I already used the Html.LabelFor. However now I want to assign a CSS class to the labels.
Html.LabelFor(model => model.Customer.Description ????)
Does anyone out there know if this is possible in MVC3. Note it’s MVC3 I am using. Already I saw a post that talked about MVC2 and there being no simple solution.
There is no built in way to do this in MVC 3. You will have to write your helper that does this. Take a look at the
LabelExtensionsclass to see how it is done.