Specify a Root Path of your HTML directory for script links?

前端 未结 7 885
我在风中等你
我在风中等你 2020-12-23 03:11

I\'m writing a template for dreamweaver, and don\'t want to change the scripts for subfolder pages.

Is there a way to make the path relative to the root directory?

相关标签:
7条回答
  • 2020-12-23 04:05

    You can use ResolveUrl

    <link type="text/css" rel="stylesheet" href="<%=Page.ResolveUrl("~/Content/table-sorter.css")%>" />
    
    0 讨论(0)
提交回复
热议问题