MVC 4 @Scripts “does not exist”

后端 未结 24 1997
长发绾君心
长发绾君心 2020-12-12 11:20

I have just created an ASP.NET MVC 4 project and used Visual Studio 2012 RC to create a Controller and Razor Views for Index and Create Actions.

24条回答
  •  情深已故
    2020-12-12 12:23

    Create a new MVC 4 RC internet application and run it. Navigate to Login which uses the same code

     @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
    

    What allows Login.cshtml to work is the the Views\Web.config file (not the app root version) contains

    
    
        
    
      
    

    Why is your Create view not working and Login is?

提交回复
热议问题