In your project config file add below keys:
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
Or if you want to set this programmatically then do below code in Application_Start()
void Application_Start(object sender, EventArgs e)
{
HtmlHelper.ClientValidationEnabled = true;
HtmlHelper.UnobtrusiveJavaScriptEnabled= true;
}


Yashwanth MuthineniPosted Aug 29, 2015, 1:45 AM EDT
Nice share
Gowtham RajamanickamTOP 100Posted Mar 12, 2015, 10:06 PM EDT
Good one...