To: panyee(快乐王子) 用onload="history.forward()"这样的方法虽然禁止了后退,但如果该页前面有历史记录,你就永远也打不开该页,因为它向前跑到历史记录的下一页了!
>>>现在发现是用户按了后退,重复提交,从而导致重复内容。 >>>正在找禁止后退的办法 the clean method is to use location.replace("") to load all new pages, so the 后退 never works, or open a window with no toolbar/no menu and disable context menu, so the user cannot go backotherwise, try to add a Session variable for the last update time and a <input type=hidden> or ViewState to save the last update time. After every successful update, update both, so if when the user 后退, the value in <input type=hidden> or ViewState will be different from what's in the Session variable, you can safely reject it
用onload="history.forward()"这样的方法虽然禁止了后退,但如果该页前面有历史记录,你就永远也打不开该页,因为它向前跑到历史记录的下一页了!
>>>正在找禁止后退的办法
the clean method is to use location.replace("") to load all new pages, so the 后退 never works, or open a window with no toolbar/no menu and disable context menu, so the user cannot go backotherwise, try to add a Session variable for the last update time and a <input type=hidden> or ViewState to save the last update time. After every successful update, update both, so if when the user 后退, the value in <input type=hidden> or ViewState will be different from what's in the Session variable, you can safely reject it
Response.Redirect("xxx.aspx")