Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4777

ASP.Net MVC: Add (Apply) CSS Class (Styles) in Html.ValidationMessageFor method

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to add (apply) CSS Class (Styles) in Html.ValidationMessageFor Helper method in ASP.Net MVC Razor. The Html.ValidationMessageFor Helper method has a parameter named htmlAttributes which is used for adding (applying) CSS Class (Styles) to the displayed validation message.

Viewing all articles
Browse latest Browse all 4777

Trending Articles