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

  • Home
  • SEARCH
  • 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

There has to be something simple I am missing here. http://jsfiddle.net/v9mdZ/ I am just
Is there a way through the .Net aframework (or has someone written something similar)
Has anyone used both Joone and Encog in production applications? Is there something you
There has GOT to be a simple way to programmatically render HTML into a
There has been similar questions asked (and answered), but never really together, and I
Is there a library out there that has a facility something like: public static
After running some tests, I'm convinced there has to be something wrong with my
Short of rolling your own. There has to be something out there. FlexLM/FlexNet is
I'm sure there is good explanation for this. I'm guessing it has something to
I downloaded the Facebook SDK, and I find there has something like FBConnect.bundle it

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.