Hi.
I would like to change the htmlAttributes of the code rendered by my Html.ValidationMessageFor
, but I want the message displayed to be the "default".
The overload options are:
A) Html.ValidationMessageFor(expression)
B) Html.ValidationMessageFor(expression, validationMessage)
C) Html.ValidationMessageFor(expression, validationMessage, htmlAttributesObject)
I wish there was a Html.ValidationMessageFor(expression, htmlAttributesObject)
option, but there is not.
How can I achieve the desired result with option C? That is, where is that "default" messages stored? Is there an clean, easy way to get at it, so I can plug it in to the validationMessage parameter?
Thanks