How to give InitialValue to Html.ValidationMessage helper - ASP.Net MVC

Posted by SurajRane under ASP.NET on 8/24/2010 | Points: 10 | Views : 3749 | Status : [Member] | Replies : 0
does anybody know how to achieve requiredField validation in MVC.

I know Html.ValidationMessage() helper.

problem is i have a dropdown list with following items


out of these three 1st one is default. I want user to select value either Admin or Reports not the default one i.e. ---select---

as we do in webForms, we give InitialValue to asp:RequiredFieldValidator to achive such functionality. How to get it using Html.ValidationMessage


(No response found.)

Login to post response