The solution for this is to use
<![CDATA[<%=Request.ApplicationPath%>]]>
in path, How?
Folowings are the example of the links i have provided in Master page of ASP.net where Contents the folder at root directory
<script type="text/javascript" src="<%=Request.ApplicationPath%>/Contents/javascript/jquery/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="<%=Request.ApplicationPath%>/Contents/javascript/jquery/ui/external/jquery.bgiframe-2.1.2.js"></script>
Observe the link you will find the
<![CDATA[<%=Request.ApplicationPath%>]]>
in the path instead of absolute path ("~") or relative path ".../" when page request from one path to other path the dotnet itselt will manage the things related to path.
You may get following error while using such path
Quote:
Code-blocks are not allowed in this file
if so the replace = with #
<script type="text/javascript" src="<%#Request.ApplicationPath%>/Contents/javascript/jquery/jquery-1.6.1.min.js"></script>
and use for vb.net
Me.Page.Header.DataBind()
and
this.Page.Header.DataBind()
for C# in code behind
Hope this may help you-Enjoy Coding