浏览器中的“后退"按钮出现问题.

浏览器中的“后退

问题描述:

您好FRNDS,

我有一个与浏览器中的后退"按钮有关的问题.

我的主菜单中的菜单为主页,显示,Changepaswd,注销.

当我在浏览器中单击返回"时,我希望到达前一页(应加载前一页),但不会加载.

我在PAGE_LOAD
中的代码

Hello FRNDS,

I have an issue that relates to the ''Back'' button in the browser.

I have my Menus in Master Page as Home,Display,Changepaswd,Logout.

When I click ''Back'' in the browser, I expect to reach the previous page ( the previous page should be loaded) but it doesn''t get loaded.

My code in PAGE_LOAD

Response.Buffer = true;
       Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
       Response.Expires = -1500;
       Response.CacheControl = "no-cache";


       if (Session["UserName"] == null)
       {
           Response.Redirect("Default.aspx");
       }




请帮帮我,

谢谢.




Please help me,

Thanks.

<script type="text/javascript">
function goBack()
  {
  window.history.back()
  }
</script>
</head>
<body>

<input type="button" value="Back" onclick="goBack()" />

</body>
</html>




在javascript




try this in javascript