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

I have an ASP.NET MVC app and I want to add to each page
We have an ASP.NET webforms app that has try/catch blocks all throughout. In the
I have following Javascript line in my ASP.NET web app: document.getElementById('<%=myTextBox[0].ClientID %>').value = test;
I have an ASP.NET app (it uses DevExpress v 10.2). There is a button
I have an ASP.NET app that sits on our intranet, using the WindowsIdentity to
I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production
What way makes the most sense? I have a ASP.NET app... and maybe a
Have an ASP.net web app which works fine for a few days, but then
I have an asp.net web app. I want to separate out a particular section
I have an ASP.NET MVC3 app and when the user clicks on my anchor

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.