In /controls/BaseNopUserControl.cs remark the Line 44 and add code:
// Page.ClientScript.RegisterClientScriptInclude(jquery, jquery);
Add code below above remark:
//Custom JQuery insert
string jqueryBase = "http://www.google.com/jsapi";
StringBuilder jblock = new StringBuilder("<script>");
jblock.AppendLine("google.load(\"jquery\", \"1.4.4\");");
jblock.AppendLine(" google.load(\"jqueryui\", \"1.8.7\");");
jblock.AppendLine("</script>");
Page.ClientScript.RegisterClientScriptInclude(jqueryBase, jqueryBase);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), jblock.ToString(), jblock.ToString());
Below that you can insert your custom JQuery plugins like so:
// Include custom plugin scripts
string jcorners = CommonHelper.GetStoreLocation() + "Scripts/jcorners.js";
Page.ClientScript.RegisterClientScriptInclude(jcorners, jcorners);
string slideshow = CommonHelper.GetStoreLocation() + "Scripts/slideshow.js";
Page.ClientScript.RegisterClientScriptInclude(slideshow, slideshow);
string jdefault = CommonHelper.GetStoreLocation() + "Scripts/jdefault.js";
Page.ClientScript.RegisterClientScriptInclude(jdefault, jdefault);
In BaseNopPages.cs add replace whole code to OnPreRender(Eventargs e) section (line 170):
string publicJS = CommonHelper.GetStoreLocation() + "Scripts/public.js";
Page.ClientScript.RegisterClientScriptInclude(publicJS, publicJS);
// include custom plugin scripts
string jqueryBase = "http://www.google.com/jsapi";
StringBuilder jblock = new StringBuilder("<script>");
jblock.AppendLine("google.load(\"jquery\", \"1.4.4\");");
jblock.AppendLine(" google.load(\"jqueryui\", \"1.8.7\");");
jblock.AppendLine("</script>");
Page.ClientScript.RegisterClientScriptInclude(jqueryBase, jqueryBase);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), jblock.ToString(), jblock.ToString());
//include custom plugin scripts
string jcorners = CommonHelper.GetStoreLocation() + "Scripts/jcorners.js";
Page.ClientScript.RegisterClientScriptInclude(jcorners, jcorners);
string slideshow = CommonHelper.GetStoreLocation() + "Scripts/slideshow.js";
Page.ClientScript.RegisterClientScriptInclude(slideshow, slideshow);
string jdefault = CommonHelper.GetStoreLocation() + "Scripts/jdefault.js";
Page.ClientScript.RegisterClientScriptInclude(jdefault, jdefault);
base.OnPreRender(e);
The problem with this, if you want to add plugins or update de jquery version. You have to completely rebuild your site. So I rather remove all jquery related stuff from code behind and place it in de root.master page. Its much much much easier to update without comprising the site or need to rebuild the site code. You can change your jQuery code on the fly.