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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:01:49+00:00 2026-05-11T02:01:49+00:00

There has to be something utterly simple I’m overlooking here, but for the life

  • 0

There has to be something utterly simple I’m overlooking here, but for the life of me I can’t get a JavaScript file to include properly from my master page. My declaration in the <head> element looks normal enough:

<head runat='server'>     <title>Untitled Page</title>     <script type='text/javascript' src='/_private/scripts/jquery-1.2.6.min.js'></script>     <asp:ContentPlaceHolder ID='head' runat='server'>     </asp:ContentPlaceHolder> </head> 

But when the page loads, the js file is simply missing. Instead, what we get in Firebug when trying to expand that script element is just the page’s HTML all over again.

I’ve included js files like this successfully countless times before and as far as I can tell, I’ve done it the exact same way again. It’s hardly rocket science, so I must be overlooking something blindingly obvious but damned if I can figure out what it is.

In desparation, I turn to you. Any ideas?

One final point as well: viewing the source of the page shows a very unlikely form action. Even when browsing directly to the default page, there is a ReturnUrl being included on the form action and that ReturnUrl is the location of the missing script:

<form name='aspnetForm' method='post' action='default.aspx?ReturnUrl=%2f_private%2fscripts%2fjquery-1.2.6.min.js' onsubmit='javascript:return WebForm_OnSubmit();' id='aspnetForm'> 
  • 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. 2026-05-11T02:01:49+00:00Added an answer on May 11, 2026 at 2:01 am

    If you are running this inside of Visual Studio, chances are the link won’t work. By default, VS serves up sites as something like http://localhost:3456/projectname/… so /_private won’t actualy be at the root.

    You can change this in the properties on the project/solution, or use some other approaches to rewrite the script path dynamically.

    As to the second bit about the form action, is there any chance your js file is in a protected directory? Looks like a login/return path url.

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

Sidebar

Related Questions

Short of rolling your own. There has to be something out there. FlexLM/FlexNet is
Is there some standard way or has anyone written something that allows you to
There has been a lot of sentiment to include a nameof operator in C#.
There has to be a way to do this, I was googling information but
There has to be a simple explanation for this. I have a parent <div>
There has got to be an answer to this, but I am a total
There has been some talk of Website performance monitoring tools and services on stackoverflow,
There has been a flurry of updates released to Microsoft's Silverlight over the past
Recently there has been quite some hype around all the different mocking frameworks in
There is some black magic code in c# where you can define the default

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.