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 5850547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:09:20+00:00 2026-05-22T13:09:20+00:00

If I use the CompositeScript feature of the ASP.NET ScriptManager/ScriptManagerProxy controls, I cannot get

  • 0

If I use the CompositeScript feature of the ASP.NET ScriptManager/ScriptManagerProxy controls, I cannot get the Path attribute to work:

My code

<asp:ScriptManagerProxy ID="scriptProxy2" runat="server">
  <CompositeScript Path="~/Includes/Javascript/Combined.js">
    <Scripts>
      <asp:ScriptReference Path="~/Includes/Javascript/MyFile1.js" />
      <asp:ScriptReference Path="~/Includes/Javascript/MyFile2.js" />
    </Scripts>
  </CompositeScript>
</asp:ScriptManagerProxy>

My page gets the correct script tag in it:

<script src="../Includes/Javascript/Combined.debug.js" type="text/javascript"></script>

But of course, that file doesn’t exist and so the browser gets a 404.

Am I missing something?

  • 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-05-22T13:09:21+00:00Added an answer on May 22, 2026 at 1:09 pm

    Have you specified source scripts to get combined using ScriptReference tag – see the documentation.

    EDIT: After using reflector, I discovered that if you use specify Path attribute, the script combining does not happen – it just emits script ref to the path specified (modifying as per release/debug mode and culture (if localization is enabled)). After googling around, found that intended use of path property is to work around url limit of 1024 characters. From this MSDN documentation:

    The number of script references that a
    CompositeScriptReference instance can
    contain is limited by the size of the
    resulting URL. The URL cannot be
    longer than 1024 characters.

    If you have to work around this
    limitation, you have two options. The
    first option is to reduce the number
    of ScriptReference objects that the
    composite script contains. The second
    option is to manually combine the
    scripts into a single static file. In
    that case, you can set the Path
    property to the location of the static
    file.

    I have also stumbled upon this link where there is a wealth of information in comments section. One such comment clearly states that

    You can combine multiple physical
    script files using that feature, but
    we really don’t recommend it as there
    is some server overhead related to
    file monitoring. What you’re
    describing is much better handled by
    “building” your scripts at compile
    time instead of doing the combination
    at runtime. The feature really is for
    application developers who want to
    combine existing scripts from various
    components that they use in their
    application.

    So in summary, I think that how you intend use the combine script is neither supported nor recommended. I will suggest that you use build time script combining – below resources will help you in achieving the same:

    http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/

    Look at mashing feature in Chirpy add-in: http://www.weirdlover.com/2010/07/18/chirpy-attains-godlike-abilities-in-version-1-0-0-4/#mash

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

Sidebar

Related Questions

use LWP::Simple; use Parallel::ForkManager; @links=( [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-windows.exe,SweetHome3D-2.1-windows.exe], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.1-macosx.dmg,SweetHome3D-2.1-macosx.dmg], [http://prdownloads.sourceforge.net/sweethome3d/SweetHome3DViewer-2.1.zip,SweetHome3DViewer-2.1.zip], ); # Max 30 processes for
Use of java.net.URLConnection is asked about pretty often here, and the Oracle tutorial is
Use case example: Client A comes to request sales information, enters their zip code
Scenario : I have a complex Asp.net app serving various units through programmatically constructed
Use to work with a MySQL + + (library for C + +) The
Use OPENXML to get dt element in MSSQL 2005. How can I get xmlns:dt
use case is simple: I want to run some boiler plate code before each
'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
Use case: A does something on his box and gots stuck. He asks B
Use case: 3rd party application wants to programatically monitor a text file being generated

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.