How to recall ScriptManager on child page? RRS feed

  • Question

  • User-1361822156 posted

    Hello All,

    Thank you in advance for your time. I have following ScriptManager on my MasterPage. As you can see I have commented out ScriptReference bootstrap because it was causing several issues on two child pages. But then my menubar is not functioning on mobile for remaining child pages. I.e. If I am on my Contact Us page, I cannot click on Home from mobile Menubar. How can I recall bootstrap on the child page? or how to work around this issue?

    <asp:ScriptManager runat="server">
                    <%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=301884 --%>
                    <%--Framework Scripts--%>
                    <asp:ScriptReference Name="MsAjaxBundle" />
                    <asp:ScriptReference Name="jquery" />
                    <%--<asp:ScriptReference Name="bootstrap" />--%>
                    <asp:ScriptReference Name="respond" />
                    <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
                    <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
                    <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
                    <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
                    <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
                    <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
                    <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
                    <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
                    <asp:ScriptReference Name="WebFormsBundle" />
                    <%--Site Scripts--%>
    Thursday, November 30, 2017 2:15 AM


  • User991499041 posted

    Hi monaliza17,

    How can I recall bootstrap on the child page? or how to work around this issue?

    Welcome to ASP.NET Forums.

    You can place a content placeholder in the head.


    <head runat="server">
        <asp:ContentPlaceHolder ID="head" runat="server">


    <asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="Content/bootstrap.min.css" /> <script src="Scripts/bootstrap.min.js"></script>
    ... </asp:Content>



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 30, 2017 5:17 AM