473,382 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

how do I navigate UP the directory tree from a subfolder?

asp.net 2.0

I have a master page in my root. I have some other pages in subfolders. All
my navigation buttons are on the master page. When I click one of the
buttons that takes me to a page in a subfolder, that works fine. But then
when I click one of the buttons that's supposed to take me back up (to the
home page for example), it cannot find it. I understand why but I don't know
what to do to handle it. No idea. Could someone give me some specific info
on what to do? I tried searching online for an answer but I'm not even sure
what to search for. I'm sure this is a common thing so it can't be terribly
complicated.

Thanks,

Keith
Feb 29 '08 #1
3 1494
"Keith G Hicks" <kr*@comcast.netwrote in message
news:ON**************@TK2MSFTNGP02.phx.gbl...
These are the buttons that don't work. They function fine as long as I'm
on
a page that's in the root, but as soon as I'm on a page that's in a
subdirectory, they throw an error.
As a general rule in a technical newsgroup, there's very little point in
saying something like "they throw an error" if you don't actually tell the
group what the error is - I wrote some code this morning but, when I ran it,
it threw an error - what could the problem be...?

Please say what the error is that you're getting...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 29 '08 #2
Don't answer people if all you can be is rude. I thought I stated the
problem pretty clearly in the original post and that because asp.net is new
to me I wasn't sure what to ask about exactly. I said "it cannot find the
page." I figured I didn't need to repeat that in my follow up. Iv'e been
writing and answering newsgroup messages for years in microsoft, borland and
various 3rd party tools. I don't need a scolding on how to be clear in a
post. I read posts all the time that are so far from clear that it's
laughable. Same for a lot fo the answers I see. I figured this is a common
issue and describing the fact that I have img controls on the master page
wiht <a href... /links in them and that they can't navigate back up to the
root directory when on a page that's in a subfolder was super clear and
probably something that is easy for experienced asp.net folks (especially
MVP's) to solve. Does anyone have a helpful answer to my problem?

And if it helps, here's all the error info:

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure that
it is spelled correctly.

Requested URL: /Website1/LoggedInUsers/Home.aspx

---------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
The page "Home.aspx" is actually in the root ("Website1"), not in the
"LoggedInUsers"
directory.

Keith

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:uq**************@TK2MSFTNGP06.phx.gbl...
"Keith G Hicks" <kr*@comcast.netwrote in message
news:ON**************@TK2MSFTNGP02.phx.gbl...
These are the buttons that don't work. They function fine as long as I'm
on
a page that's in the root, but as soon as I'm on a page that's in a
subdirectory, they throw an error.

As a general rule in a technical newsgroup, there's very little point in
saying something like "they throw an error" if you don't actually tell the
group what the error is - I wrote some code this morning but, when I ran
it,
it threw an error - what could the problem be...?

Please say what the error is that you're getting...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net



Feb 29 '08 #3
"Keith G Hicks" <kr*@comcast.netwrote in message
news:Of**************@TK2MSFTNGP02.phx.gbl...
And if it helps, here's all the error info:
It does.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that
it is spelled correctly.

Requested URL: /Website1/LoggedInUsers/Home.aspx
Looks very much like you have a relative addressing problem. One of the
resources that your page is looking for is not in the folder where the code
is expecting to find it...

Simplest way to track it down would be to do a View Source on the page where
the error occurs and inspect the URL paths in the HTML output...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 29 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ken Fine | last post by:
I want my application to maintain a directory tree based on months and years, e.g.: 2004 January file file file February file
26
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso =...
3
by: andrew | last post by:
I do not understand how this function should work. It seems to be different than when I drag a folder ... error message: Cannot create a file when that file already exists. c:\atest has...
10
by: See Sharp | last post by:
Hello all, I have a set of admin pages which are put in a subfolder called admin inside my application folder. I want to limit access to these admin pages. How can I do this? In Linux, I can...
2
by: EO | last post by:
I'm using an ISP with poor tech support. I apologize if this is more of an ISP question, but it is an asp.net question as well. I have a root domain pointing to a root level folder. There are...
3
by: _DS | last post by:
Problem with mapping a directory tree to a tree control: It takes a while to recurse subdirs and map them to nodes. This is solved in some books I've seen (MacDonald, Albahari) by reading the...
3
by: Martin M. | last post by:
Hi everybody, Some of my colleagues want me to write a script for easy folder and subfolder creation on the Mac. The script is supposed to scan a text file containing directory trees in the...
4
by: Robert | last post by:
Greetings New to Visual Studio 2008. Always us VB6.0 SP5. I am trying to copy files from A to B. I select a directory, and copy files. Works ok, but it does not create the directory first. ...
13
by: lawpoop | last post by:
Hello all - I have a two part question. First of all, I have a website under /home/user/www/. The index.php and all the other website pages are under /home/user/www/. For functions that are...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.