Skip to content Skip to sidebar Skip to footer

@scripts Doesn't Exist In Asp.net Mvc

I'm trying to add Model validation in Asp.Net MVC , So I need to import the libraries at first inside Views\Share_Layout.cshtml . Then it kills me in a second. @Scripts doesn't ex

Solution 1:

  1. Install Microsoft.AspNet.Web.Optimization
  2. In web.config (Views folder) make sure you have under namespaces <add namespace="System.Web.Optimization"/>

Post a Comment for "@scripts Doesn't Exist In Asp.net Mvc"