The template page is just a template, it is not a separate page, and its path is the path to the content page that references it. In other words, the template page is just a fixed part of the content page. The template page refers to the JS and CSS, the content page does not have to re-reference the CSS even if the content page is not in a sibling directory, and does not have to re-reference, because the link tag is supported by the ~ path. In the template page refers to the JS, the most like the bottom of this write, because the <script> tag is not supported ~ path. <script type= "Text/javascript" src= "<%=page.resolveurl (" ~/scripts/jquery-1.4.1.js ")%>" ></script > for images used in template pages, the path is best written page.resolveurl (XXX)
Questions about the path of the ASPX template page element, and understanding of the template page