I need to add two relative Jquery files path in my master pages Head section. i try this for two file but just one of them calling in my "Head" section.i also use this cods in my master page Code Behind but it didn't work:
protected void Page_PreRender(object sender, EventArgs e)
{
string jquery = ResolveClientUrl("~/JQuery/jquery-1.4.4.min.js");
Page.ClientScript.RegisterClientScriptInclude("jquery", jquery);
string jqueryShadow = ResolveClientUrl("~/JQuery/jquery.shadow.js");
Page.ClientScript.RegisterClientScriptInclude("jqueryShadow", jqueryShadow);
}
Also ,when i try this:
<script type="text/javascript" src="<%= Page.ResolveClientUrl("~/jquery.js") %>"></script>
i got same error with 1 link!
When i define both of Jquery files in my master page Head section directly, every things works for me!how can i inject my Jquery files(more than one!) with relative paths exactly on the Head section in Master Page?
Any idea?
Regards.