469,289 Members | 2,137 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

Redirecting web pages

1
Hello! I'm a beginner in asp sorry for bothering with silly questions, but i have this problem and i hoped u could help me: I have a control which leads from different pages to a page wich has the following url http://localhost:1951/WebSite/MyPage/mypage.aspx. When i want to come back to the previous page by pushing a button i use Response.Redirect("url.aspx"), where in url i save the previous page url... but the problem is that when redirecting i am leaded to the http://localhost:1951/WebSite/MyPage/url.aspx instead of http://localhost:1951/WebSite/url.aspx (cause my mypage.aspx is saved in the MyPage folder).... How can i solve this pb? Is there some way to get away from that MyPage folder when redirecting???

Pls reply.Thanks.
Oct 10 '07 #1
1 1224
jhardman
3,406 Expert 2GB
Use an absolute or relative URL rather than just a file name.. For relative paths, starting the url with "/" will go back to the root menu, if I remember right. It's surprising how seldom I try this.

Jared
Oct 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

25 posts views Thread by Rob Tweed | last post: by
3 posts views Thread by Shreyas | last post: by
8 posts views Thread by Morpheus | last post: by
41 posts views Thread by amygdala | last post: by
9 posts views Thread by Jonathan Wood | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.