0

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 exist

@Scripts doesn't exist

What is going on ? If some further information needed , please tell me. Thanks :)

OOD Waterball
  • 688
  • 1
  • 10
  • 25

1 Answers1

0
  1. Install Microsoft.AspNet.Web.Optimization
  2. In web.config (Views folder) make sure you have under namespaces <add namespace="System.Web.Optimization"/>
Cristian Szpisjak
  • 2,379
  • 2
  • 18
  • 32