URL Path problem

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,
I have the following situation:

MyProject\Test.aspx
MyProject\Personal\View.aspx

Now I am in Page "View.aspx", and would like to be redirected in a
previous layer folder, ie into "MyProject\Test.aspx"

In the View.aspx, I am using Response.Redirect(@"Test.aspx"); but that
is giving me an error, Page Not found, because the URL to which I am
being directed is MyProject\Personal\Test.aspx

Should I give all the path(http:\\...\MyProject\...), or is there a
way how I can get around it in a simple way.

I hope someone understands my problem and can help me out.
Thanks in Advance
 
Well you could also do something like this

Response.Write("~/Test.aspx");

The ~ is .NET way of saying go to the root of my project. Hope this helps
 
Back
Top