如何避免在按钮单击时加载另一个和上一页 [英] How to avoid another and previous page to load on button click

查看:53
本文介绍了如何避免在按钮单击时加载另一个和上一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vb.net Web应用程序中有一个页面,其中包含2个按钮作为开始和结束。我想要点击开始按钮后,如果我点击后退或刷新按钮或尝试访问另一个页面,那么它不应该允许我加载以前加载的页面或刷新页面或加载任何其他页面。我怎么能这样做????



我尝试过:



我真的不知道该怎么做。请帮助我。

I have a page in vb.net web application containing 2 buttons as start and end. I want that after start button is clicked if I click on back or refresh button or try to access another page then it should not allow me to load previously loaded page or refresh page or load any other page. How can I do that????

What I have tried:

I really don't know how to do this. Please help me.

推荐答案

您是否尝试禁用浏览器上的后退按钮和刷新按钮?如果是这样,你就不能。
Are you trying to disable the back button and the refresh button on the browser? If so you can't.


这篇关于如何避免在按钮单击时加载另一个和上一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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