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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:50:11+00:00 2026-05-20T07:50:11+00:00

I have an asp.net 3.5 app. when I try to add a value to

  • 0

I have an asp.net 3.5 app. when I try to add a value to the url to be picked up in Request.PathInfo, i lose anything linked in head because the locations are resolved as relative paths.

master page looks like this:

<head id="Head1" runat="server">
    <link rel="stylesheet" href='~/App_Themes/main/style.css' type="text/css"  />
</head>

and renders like this

<head id="ctl00_ctl00_Head1">
    <link rel="stylesheet" href="../App_Themes/main/style.css" type="text/css" />
</head>

and so when i go to

http://localhost:5000/project/folder/edit.aspx/555

the browser is looking for the stylesheet at

http://localhost:5000/project/folder/App_Themes/main/style.css

instead of

http://localhost:5000/project/App_Themes/main/style.css

is it automatic behavior to resolve with a relative path? can I change it? is this something the previous developer is doing that i haven’t found?

— edit —

i took the suggestion below and added a base element like so

<base id="ctl00_ctl00_baseElement" href="http://localhost:5000/project/"></base>

but my links still don’t work because asp.net is insistent on rendering the urls as relative paths unless the href starts with /, but in both cases i end up one level too high now.

http://localhost:5000/App_Themes/main/style.css
  • 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-20T07:50:12+00:00Added an answer on May 20, 2026 at 7:50 am

    Apparently when the head element is defined as a server control, link elements within are automatically parsed and resolved by the server. So the solution is to have the head element as a standard html control only or possibly manually add your link elements. I bailed on the PathInfo idea I was pursuing so I didn’t get that far.

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

Sidebar

Related Questions

Assume I have an ASP.NET MVC app that's not doing anything too fancy (no
I have an asp.net app and I am trying to save a text file
I have an ASP.NET app running in IIS that is hosting files all great
I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath
I have an asp.net mvc app running on a local iis website that is
I have a ASP.net 2.0 app and I have made some changes the the
I have a multi-user ASP.NET app running against SQL Server and want to have
I have an asp.net update web app. Users go the the page, hit the
We have CC.NET setup on our ASP.NET app. When we build the project, the
I am working on a ASP.NET app and i have a need to post

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.