Go to root

PROKA

Junior Contributor
Joined
Sep 3, 2003
Messages
249
Location
Bucharest
with "../" you go up a level

what If I want to go directly to the root. I don't know in which folder I am, and I want to go directly to the root
 
OK I got it, / takes you to the root of the server, I thought it's supposed to take you to the root of the Prokect .

so all I had to do was to put /ProjectName/ before :)
 
"~" will do it.

Response.Redirect("~/One/Two/Three.aspx")

This will take you to that page whether you are in the one folder, two folder, root folder, some other folder 18 levels deep, etc.
 
bri189a said:
"~" will do it.

Response.Redirect("~/One/Two/Three.aspx")

This will take you to that page whether you are in the one folder, two folder, root folder, some other folder 18 levels deep, etc.


Cool. Now I know two ways . Yours is the easiest
 
Back
Top