I used a master on pages of my ASP.NET application. CSS and Script files were used in the master using a reference lines as:

<link rel="stylesheet" href="css/style.css" runat="server" />
<script src="js/jquery.min.js"></script>

It works on pages on same root where the CSS and Script folders are located but it never worked in another pages which are located in other folders. I resolved this issue by changing the references as follows:

<link rel="stylesheet" href="~/css/style.css" runat="server" />
<script src=’<%# ResolveUrl("~/js/jquery.min.js")%>’ type="text/javascript"></script>

There’s a line in script that I changed as well to ensure that the file is linked correctly.