[英]Navigate back in visual webgui
I'm a newbie of ASP.NET world. 我是ASP.NET世界的新手。 I'm developing an app with asp.net and insiede of an aspx page i'm using a window form developed with visual webgui.
我正在使用asp.net和一个aspx页面开发一个应用程序,我正在使用通过可视化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 the HttpContext
. 我认为我必须对
HttpContext
做一些事情。 I tried with the Redirect
function but my "previous page" is open always in a new browser window. 我尝试使用
Redirect
功能,但是我的“上一页”始终在新的浏览器窗口中打开。
Can someone tell me a way on how to do this thing please? 有人可以告诉我如何做这件事的方法吗?
Thank's Marco 谢谢马可
EDIT SOLVED 编辑已解决
button.RegisterClientAction("history.go( -1 )", "");
不能这样做:
Response.Redirect(Request.UrlReferrer.ToString());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.