Hi,
I've got drop down list on the form. It's filled in with data from db (Entity Framework). I have also remote validation associated with that dropdown. When I change the value remote validation is launched and everything works.
I added empty value to the dropdown and I'd like to trigger remote validation for that value as well.
@Html.DropDownListFor(m => m.BudgetDirectorateParentID, (SelectList)ViewBag.BudgetDirectorateParentID,"")
How can I do it?
Loading
Manish Kumar ChoudharyPosted Jan 13, 2015, 6:46 AM
Hi Luk Ber,
Go through following links it will help you
http://www.codeproject.com/Questions/427559/Remote-Validate-for-DropDownList-MVC-not-firing-i
http://www.dotnet-tricks.com/Tutorial/mvc/F16Q301112-Server-Side-Model-Validation-in-MVC-Razor.html