Umbracians for Unicef - the friendly fundraising
In the spirit of holidays and humanity, we started a fundraising for Unicef. You won't believe what we could change if every visitor on Our Umbraco donated a dollar or euro. Click and find out!
The form is rendered using "Html.BeginUmbracoForm()" and the model is anotated with some validation attributes, as per sugestion on this documen: http://our.umbraco.org/documentation/Reference/Mvc/forms
Now, how can I enable client side validation so MVC can automatically wires up these validation attributes with the front-end?
After a 24 hours shift and unable to come up with a solution (couldn't get client side validation to work) I endup creating this post.However, after some sleep I came back and notice some problem with my code.Bottom line is: there is nothing special about enabling the client side validation, just had to do the same as I do in any mvc project.
<add key="ClientValidationEnabled" value="true"/>
I tried to delete this post though but since the "Delete" option is not working, I updated it just for fun :-)
Very helpful! And you can get all the jQuery files from Microsoft's CDN, too - http://www.asp.net/ajaxlibrary/cdn.ashx
So as a comment here, be carefull to put in these keys in the website's web.config and not that little web.config inside the views folder. I just spent 2 hours moving those to lines to the proper place :)