ASP.Net Master Page and File path issues

后端 未结 10 1467
余生分开走
余生分开走 2020-11-28 02:33

I\'m trying to add a script reference to jQuery in my master page so that it will work for any page. It currently looks like this



        
10条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 03:08

    Look at How to Run a Root “/”. This should fix all your issues regarding unresolved .js file paths. You basically reconfigure the VS Dev server to run your application as localhost:port/ as opposed to the regular localhost:port/application name/ making name resolution work the same way as it does on IIS.

提交回复
热议问题