Using scripts in a master page with ASP.NET MVC

前端 未结 11 1317
难免孤独
难免孤独 2020-11-28 19:06

I\'m fairly new to ASP.NET MVC, and I\'m having a little trouble with scripts... in particular, I want to use jQuery in most pages, so it makes sense to put it in the master

11条回答
  •  感情败类
    2020-11-28 19:29

    Our applications are deployed using virtual directories, and we have had some issues with other answers mentioned here (not resolving the path correctly). One way that worked well, (not the only way mind you), was to use this:

    
    

提交回复
热议问题