需要帮助以停止单击鼠标时的刷新按钮 [英] Need Help to stop refresh button on mouse click

查看:64
本文介绍了需要帮助以停止单击鼠标时的刷新按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目是在线考试,但是如果考生在考试页面上进行考试(如果他单击刷新按钮),则该页面将刷新,并且问题和计时器时间也会更改.
单击浏览器按钮时,我无法停止浏览器刷新.

请任何人可以帮助我解决问题.....尽快

谢谢和问候,
Arnab Mitra

My project is Online Exam, but when a candidate give exam in exam page if he click refresh button the page is getting refresh and the question and timer time is changed.
I can''t able to stop browser refresh while click on browser button.

Please please can anybody help me to solve the problem.....ASAP

Thanks and Regards,
Arnab Mitra

推荐答案

如果您的按钮定位到主页,那么实际上该页面将刷新.
尝试使用iframe,您可以刷新您感兴趣的框架.
除了您还有使用AJAX刷新特定div的第二种选择.
If your button is targetting the main page then infact the page will get refreshed.
try using iframes and you can refresh your frame of interest.
besides you also have second option of using AJAX for refreshing the particular div.


您还可以使用asp.net的更新"面板.
http://www.asp.net/web-表格/教程/aspnet-ajax/understanding-asp-net-ajax-updatepanel-triggers [ http://msdn.microsoft.com/en-us/library/bb399001.aspx [ ^ ]
You can also use Update panel of asp.net.
http://www.asp.net/web-forms/tutorials/aspnet-ajax/understanding-asp-net-ajax-updatepanel-triggers[^]
http://msdn.microsoft.com/en-us/library/bb399001.aspx[^]


这篇关于需要帮助以停止单击鼠标时的刷新按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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