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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:09:24+00:00 2026-06-05T19:09:24+00:00

I have defined CSS in MasterPage so that all pages can use the same

  • 0

I have defined CSS in MasterPage so that all pages can use the same style. For some reason I defined an inline style for menu.

I provide a relative link for pages like this:

<ul>
<li style="left: -1px; top: 0px; width: 90px"><a href="Home.aspx">Home</a></li>
....
...
...</ul>

“Home.aspx” is in the root directory. The link mentioned above works fine if I am accessing it from the root directory but if I try to access it from a sub-folder it shows an error: HTTP Error 404 - Not Found.

How can “Home.aspx” be accessed from the root directory and a sub-folder?

  • 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-06-05T19:09:26+00:00Added an answer on June 5, 2026 at 7:09 pm

    Solution 1:
    You should use asp Hyperlink control for this case, & provide.

    NavigateUrl = "~/Home.aspx"
    

    Solution 2:
    Alternatively you can use ../Home.aspx for anchor tag in sub folder (level 1) add ../ for each sub folder level.

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

Sidebar

Related Questions

I have a css class defined so I can make a div to use
I have defined some background colors that I'll be using on my site. So
I have this defined in an existing CSS sheet that I'm working with: label.error-field
I have a CSS class defined, call it: <style type=text/css> .Foo { position: fixed;
I have a layout defined through CSS that has three columns. It displays correctly
Let's say we have defined a CSS class that is being applied to various
I have defined a class in the Default.css and i wanted to use the
If in my webpage, i have all the three css defined for a div
I have a CSS stylesheet defined in the Master Page of my project. On
I have defined a class in my main.css file. .red { color: #d14; }

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.