URL Path problem

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
 
T

TDAVISJR

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top