Response.Redirect("InitialPage.aspx");
Server.Transfer("InitialPage.aspx");
ViewState["UrlRef"] = Request.UrlReferrer; //Saves the Previous page url in ViewState in Page_ Load. //if (ViewState["UrlRef"] != null) //Check if the ViewState contains Previous page URL //{ // Response.Redirect(ViewState["InitialPage.aspx"].ToString());//Redirect to Previous page by retrieving the PreviousPage Url from ViewState. //}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)