Base URL in ASP.net Master Pages with virtual Directories

前端 未结 5 698
既然无缘
既然无缘 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条回答
  •  既然无缘
    2021-01-03 01:47

    Use tilde(~) in yout reference (i.e ~/scrips/ian.js)...see if it works For links try Page.ResolveUrl in the .aspx page.

提交回复
热议问题