单击按钮时停止自动刷新 [英] stop auto refresh on button click

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

问题描述

您好,在asp.net页面的另一页中,无法重新加载或刷新。没有刷新就会转到第二页.aspx。





谢谢高级朋友......

Hi In one page to another page in asp.net page cann''t reload or refresh. it will without refresh go to second page .aspx.


Thanks Advance Friends...

推荐答案

通过这个链接:



如何在jquery javascript中创建重定向页面 [ ^ ]
Go through this link:

how can i make a redirect page in jquery javascript[^]


正如我所说,如果没有回发,你无法重定向到另一个页面。

但是有一些技巧可以用来提供更好的用户体验,请记住,它不会避免回发但它不会导致屏幕上的任何闪烁。您可以将这两个标记放在HTML dcocument的头部: -



As I said You can not redirect to another page without postback.
However there is trick which you can use for a better user experience, Do remember, it would not avoid the postback but it would not cause any flicker in your screen. You can place these two tags at the head of your HTML dcocument :-

<META http-equiv="Page-Enter" content="blendTrans(Duration=0.2)">
<META http-equiv="Page-Exit" content="blendTrans(Duration=0.2)">





还有一件事,这些代码可能无效在某些浏览器中。但在IE中它会起作用。



祝你好运。



One more thing, these code might not work in some browsers. but In IE it will work.

Good luck.


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

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