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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:18:19+00:00 2026-05-16T21:18:19+00:00

Moved from a Web Application to a Web Site, began moving code over… and

  • 0

Moved from a Web Application to a Web Site, began moving code over… and now I have a very strange problem. First and foremost, my root /Website1/ shows up when I first run the web site:

http://localhost/Website1/Default.aspx

But if I go to a sub menu option, all my URLs are set to http://localhost/SubMenuOption.aspx, thus not finding my pages. It seems that ~/SubMenuOption.aspx does not work.

Also, JS files are linking strangely. On a page inside a folder, I cannot seem to link to the root folder JS folder.

<script src="../js/jquery.js" /> 

This should go down a folder, but it doesn’t. It actually inherits the folder name I’m in so if… http://localhost/Website1/Common/Sub.aspx then the JS file shows up as
http://localhost/Website1/Common/js/jquery.js

The file is actually in http://localhost/Website1/js/jquery.js

It doesn’t matter what I do to the script src whether it be runat=”server” and ~/ or /js/ or anything, it always comes out with the folder. What is the problem here? Is this some sort of setting problem?

  • 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-16T21:18:19+00:00Added an answer on May 16, 2026 at 9:18 pm

    Resolve your links from the root like this:

    <a href="~/SubMenuOption.aspx" id="link1" runat="server">Menu Item 1</a>
    

    Be sure to include the above attributes; the runat attribute is needed for the link to be resolved server-side.

    Try ResolveURL() method embedded for your script link.

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

Sidebar

Related Questions

I have rewritten web application from using mod_python to using mod_wsgi. Problem is that
I just moved from Visual Studio Web Express to professional. (2010) I have a
I am trying to get a web application project working, after we moved from
I think SubSonic used to have CMS (or Start Site) web application available, but
I moved a typed dataset from one project to an ASP Web Application project.
I have just moved a web application to a windows server and having some
I'm using CodeIgniter for a web application, and now I have an urgent question:
I have currently moved my asp.net 4.0 web application onto IIS7 (windows 2008 server).
I just moved a web app project from VSS to TFS and when I
I've moved from SeleniumRC to WebDriver for nearly two years. But I have to

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.