simple one. what does the tilda backslash mean in urls?

Posted on 2008-11-17
Medium Priority
Last Modified: 2012-06-21
Hi there,
I ve been working with menu controls and I ve noticed when you make hyperlinks to pages on the site it uses the tilda backslash in links. e.g. ~/FolderName/FileName.aspx
Is it something to do with the project root?

I have the following structure.  
+ ShowUsers
|_ +  Online
    |_ default1.aspx
   +  Denied
    |_ +  Example
        |_  default2.aspx

Normally, to make a link to default1.aspx from default2.aspx I would have used /ShowUsers/Online/default1.aspx
but thats assuming that the project is deployed to a virtual directory with the same name as the project.
It would be much better to use ~/Online/default1.aspx.
Is this right?
Question by:osion
  • 2
  • 2
LVL 14

Accepted Solution

Binuth earned 500 total points
ID: 22974610
yes you are right ,~ menas root directory

if  you deployed to a virtual directory with the same name as the project( that here is "ShowUsers") then root directory will be ShowUsers

i.e : "~" = "ShowUsers\"

Author Comment

ID: 22974634
Thats great! thanks for the rapid reply!
If the virtual directory was ShowUsersNew it would still work then?
LVL 14

Assisted Solution

Binuth earned 500 total points
ID: 22974676
yes... but you should use "~/folderName/pageName.aspx" like format

Author Comment

ID: 22974684
brilliant. thanks so much. been playing about with it and couldnt get any meaningful search results in google :)

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question