Tom Knowlton
asked on
go to url of page I just came from
In asp.net c# how do I programmatically go back to the page I just came from?
On any page, how do I obtain the URL of the page? (what is in the address bar)
On any page, how do I obtain the URL of the page? (what is in the address bar)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Page A:
string thisPage = Request.UrlReferrer.ToStri
Session["afa_parent"] = thisPage;
Response.Redirect(***Page B url***);
Page B ( on click "cancel" ):
string prevPage = Session["afa_parent"].ToSt
Response.Redirect(prevPage