473,378 Members | 1,507 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,378 software developers and data experts.

returning to site root

I want to return to the website root directory in order to use a
consistent link across multiple pages. I was told using
"~/folder/page.aspx" would get me to page.aspx no matter what directory
I start in but now I am just getting that to link to
"http://server_name/original_folder/~/folder/page.aspx".

Any help on this is appreciated.

Lee

Feb 15 '06 #1
4 1245
Lee,

What do you mean you want to "return" to the website root directory?
Are you trying to create a link? If so, you can start off with "/" and it
will take you to the root of the site.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Lee Roth" <le******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
I want to return to the website root directory in order to use a
consistent link across multiple pages. I was told using
"~/folder/page.aspx" would get me to page.aspx no matter what directory
I start in but now I am just getting that to link to
"http://server_name/original_folder/~/folder/page.aspx".

Any help on this is appreciated.

Lee

Feb 15 '06 #2
If I want to link to http://server/client/folder/page from both
http://server/client/folder2/page2 and http://server/client/page3 using
the same link from a master page - how can I do that?

Feb 15 '06 #3
You would set a link to:

/client/folder/page
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Lee Roth" <le******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
If I want to link to http://server/client/folder/page from both
http://server/client/folder2/page2 and http://server/client/page3 using
the same link from a master page - how can I do that?

Feb 15 '06 #4
Thanks

Feb 17 '06 #5

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

Similar topics

13
by: John Rebbeck | last post by:
I've got the directory f:\Company\Product set as web shared so it's got a virtual directory in the default web site on my test server's IIS. If I try to use Server.MapPath in that site it returns a...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
8
by: news.microsoft.com | last post by:
I have two completely distinct ASP.NET (2.0) web applications. They share no code, they have distinct web.config files, they don't even link to each other. During development, they have lived...
5
by: Diego Mijelshon | last post by:
I've been debugging an issue we have in an asp.net 2.0 application for several days. The initial report of the bug was that, after waiting for some minutes with an open page, entering a number...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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.