471,595 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

Redirecting web pages

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 1300
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.

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 XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.