返回上一个页面

这个是需要后台写,我使用的方法

Response.write("<script language=javascript>history.go(-2);</script>)

网上摘语

这里为会么要采用-2的值呢,我个人认为是这样的:因为在asp.net中的页面,当你按下一个button后,由于页面中会实现page.postback的缘故,实际上在这其中是刷新了两次页面,我们要的是第一次的,所以就......

摘录

前台html

<  href="#"   onclick="javascript:history.back();">返回前一页</a>

详细

原文地址:https://www.cnblogs.com/fuge/p/2587871.html