Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Development & Research Department @ Elven Soft
Posted

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 :)

Development & Research Department @ Elven Soft
Posted

"~" 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.

Posted
"~" 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

Development & Research Department @ Elven Soft

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...