Navigate back in visual webgui
I'm a newbie of ASP.NET world. I'm developing an app with asp.net and insiede of an aspx page i'm using a window form developed with visual webgui.
I've this problem: inside my form, i have a button wich has to rise an event equals to the page back button of the browser. I tried to search informations about this, but i can't find anything unfortunately. I think that i've to do something with theHttpContext
. I tried with the Redirect
function but my "previous page" is open always in a new browser window.
Can someone tell me a way on how to do this thing开发者_C百科 please?
Thank's Marco
EDIT SOLVED
button.RegisterClientAction("history.go( -1 )", "");
Cant you do this:
Response.Redirect(Request.UrlReferrer.ToString());
精彩评论