Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8165531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:33:46+00:00 2026-06-06T19:33:46+00:00

I use asp.net script manager in master page to add js files . In

  • 0

I use asp.net script manager in master page to add js files . In one of child pages i dont want specific js file to be excluded . is it possible in asp.net?

eg code in my master page

    <asp:ScriptManager runat="server" EnablePageMethods="true"  EnablePartialRendering="true" ID="id" OnResolveScriptReference="sm_ResolveScriptReference">
    <Scripts>
        <asp:ScriptReference Path="~/scripts/jquery-1.4.2.min.js" /> 
         <asp:ScriptReference Path="~/scripts/jquery.bgiframe.min.js" />
        <asp:ScriptReference Path="~/scripts/tax.js" />
        <asp:ScriptReference Path="~/scripts/old.js" />
        <asp:ScriptReference Path="~/scripts/menu.js" />
    </Scripts>
</asp:ScriptManager>

i like to exclude old.js from one child page.Hope this helps

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:33:48+00:00Added an answer on June 6, 2026 at 7:33 pm

    Warp your ScriptManager inside a PlaceHolder and when you do need to change it simple include this PlaceHolder on the child. Eg:

     <asp:ContentPlaceHolder id="ScrMang" runat="server">        
         <asp:ScriptManager runat="server" EnablePageMethods="true"  EnablePartialRendering="true" ID="id" OnResolveScriptReference="sm_ResolveScriptReference">
        <Scripts>
            <asp:ScriptReference Path="~/scripts/jquery-1.4.2.min.js" /> 
             <asp:ScriptReference Path="~/scripts/jquery.bgiframe.min.js" />
            <asp:ScriptReference Path="~/scripts/tax.js" />
            <asp:ScriptReference Path="~/scripts/old.js" />
            <asp:ScriptReference Path="~/scripts/menu.js" />
        </Scripts>
         </asp:ScriptManager>       
       </asp:ContentPlaceHolder>
    

    and on child if you include this line it will remove the ScriptManager. Of course you can include it again with different script to load.

    <asp:Content ID="Content3" ContentPlaceHolderID="ScrMang" Runat="Server">
    </asp:Content>
    

    Second solution is to make nested master page in the same way, include the ScriptManager inside a PlaceHolder, make a MasterPage with the first as parent, and change the script that it will include. Then select what page get the master page, and what gets the nested master page with different scripts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use ASP.NET and IIS to download dynamically generated files to the
When I use a script manager in Web Forms web applications, where does ASP.Net
I am building an ASP.NET application and would like to use a master page
I want to use Javascript Alert function in my ASP.NET page. For example like
I have an ASP.NET page which has a script manager on it. <form id=form1
I am trying to use the following script in asp.net: <script language=javascript type=text/javascript> function
I am developing an asp.net web application. I need to use java script to
So I'm working on a ASP.NET project and tried to use a jQuery script
I use ASP.NET I want to show percentage to user from codebehind while database
I use ASP.NET and have a label control on my page, which I fill

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.