Base URL in ASP.net Master Pages with virtual Directories

前端 未结 5 711
既然无缘
既然无缘 2021-01-03 01:24

I have an ASP.net master page. In this master, I have all my css and javascript files defined. I also have a few images and a few buttons and hyperlinks.

All the url

5条回答
  •  旧时难觅i
    2021-01-03 01:41

    So I found this IIS weirdness last night:

    
    

    Will not work properly in a virtual application that's in a subdirectory of the main IIS site.

    Instead, you MUST do it like this:

    
    

    Which is the standard way to do it, but if you're not looking for it, it can surprise you that that additional tag makes the relative path issues go away.

提交回复
热议问题