Try Now
More in this section

Forums / Bugs & Issues / script reference issue

script reference issue

3 posts, 1 answered
  1. Slava
    Slava avatar
    7 posts
    30 Oct 2008
    09 Oct 2009
    Link to this post

    I have problems with script references in master page (Sitefinity 3.7 SP1).

    I have read through all possible threads related to it in the forum and tried to implement it, here is few of them:


    <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sf" %> 


    <sf:JsFileLink id="jsLink" runat="server" FileName="~/scripts/jquery-1.3.2.js" ScriptType="Custom"></sf:JsFileLink>


    <sf:JsFileLink id="jsLink2" runat="server" ScriptType="jQuery"></sf:JsFileLink>


    <telerik:RadScriptManager id="MyScriptManager" runat="server">  


            <asp:ScriptReference name="" Assembly="" Path="~/ scripts/jquery-1.3.2.js "></asp:ScriptReference> 

            <asp:ScriptReference name="" Assembly="" Path="~/ scripts/jquery-1.3.2.js "></asp:ScriptReference> 




    <script type="text/javascript" src='<% =this.Page.ResolveUrl("~/scripts/jquery-1.3.2.js ")%>'></script>


    But it just doesn’t work for me.

    Can someone help me resolve it?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    12 Oct 2009
    Link to this post
    Hello Slava,

    Try using the built in js as shown below:

    <head runat="server">
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <script src="../Sitefinity/Admin/Scripts/jquery-1.2.6.min.js" type="text/javascript"></script

    another option is adding JsFileLink control in the body of your master page

     <a href="">Link</a>
      <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            <telerik:JsFileLink id="jsLink" runat="server" ScriptType="jQuery" />

    I hope this helps.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Slava
    Slava avatar
    7 posts
    30 Oct 2008
    12 Oct 2009
    Link to this post
    Hi Ivan,
    Thanks for the response, I get it to work.
Register for webinar
3 posts, 1 answered