ASP.NET - path to use to reference .CSS and .JS

前端 未结 4 2085
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 03:10

I have a Master Page in the root of my project. I have Content Pages throughout my project and in subfolders referencing this Master Page. What is the correct way to refer

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 03:52

    You can make the tag to run at server so Asp.Net will resolve the URL for you like this:

    
    

    (Notice the '~')
    I don't know if it can be applied to the

提交回复
热议问题