Link to home
Start Free TrialLog in
Avatar of osion
osion

asked on

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

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?
Cheers,
O
ASKER CERTIFIED SOLUTION
Avatar of Binuth
Binuth
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of osion
osion

ASKER

Thats great! thanks for the rapid reply!
If the virtual directory was ShowUsersNew it would still work then?
Thanks!
o
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of osion

ASKER

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