Does ASP.NET provide any way of interacting with the browser history ? My current way is to trigger it trough a
ScriptManager.RegisterStartupScript
Which still renders the entire page and flashes it to the user. Apart from using Response.Redirect is there any other way to go back ?
As per the comments and my own discovery, ASP.NET can't interact with the browser history in anyway.
The best way would be to call a JS script trough the code behind:
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "goBackJS", " window.history.back();",true);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.