想在IE浏览器上点击回发按钮点击ASP.NET中的页面回发 [英] Want to fire page postback on IE browser back button click in ASP.NET

查看:82
本文介绍了想在IE浏览器上点击回发按钮点击ASP.NET中的页面回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想点击浏览器后退按钮启用/触发页面回发事件。

有我的页面控件很少出现问题,因为当用户单击后退按钮并到达上一页时它们会丢失值。



所以我已经在页面加载时编写了代码绑定数据库中的值,但浏览器后退按钮不会在点击时触发页面加载。





请指教。

Hi,

I want to enable/trigger page postback event on the click of browser back button of IE.
There is a problem with few of my page controls as they are loosing values when User click back button and reaches to previous page.

So i have written code on page load to again bind the value from database but browser back button not triggering page load on click.


Please advise.

推荐答案



我不认为你可以在后退按钮上有一个事件点击当前页面,但上一页将加载回来。并且您无法禁用浏览器的后退按钮。但我建议,点击后退按钮,只需要求再次登录。请参考以下文章来实现这一目标:

如何禁用浏览器的后退按钮 [ ^ ]



希望它有所帮助。
Hi,
I don't think you can have a event on Back Button Click on the current page, but the previous page will load back. And you cannot disable back button of the browser. But I would suggest that, on click of back button, just ask the use to login again. refer below articles to achieve this:
How to disable browser's back button[^]

hope it helps.


这篇关于想在IE浏览器上点击回发按钮点击ASP.NET中的页面回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆