通过ASPX定时器控件进行页面重定向 [英] Page Redirection through ASPX Timer Control

查看:69
本文介绍了通过ASPX定时器控件进行页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此页面中有一个页面(SearchProgress.aspx),具有aspx计时器控件。在计时器滴答事件过程中一些任务并重定向到另一个页面(SearchReasult.aspx)。



重定向SearchReasult.aspx apge后,再次加载SearchProgress.aspx页面和计时器控制被调用。



我使用ASP.Net 3.5。



请告诉我如何解决这个问题?

I have a page (SearchProgress.aspx) in this page having aspx timer control. In timer tick event process some task and redirect to another page(SearchReasult.aspx).

After redirecting SearchReasult.aspx apge, again SearchProgress.aspx page is loaded and timer control is invoked.

I am using ASP.Net 3.5.

Please tell me how I resolve this issue?

推荐答案

当你在定时器上进行重定向时,在查询字符串中添加一些东西,比如SearchReasult.aspx?timer = no,并且只启用定时器Request.QueryString(timer)返回空。
Add something to the querystring when you do the redirect on timer, like "SearchReasult.aspx?timer=no", and only enable the timer if Request.QueryString("timer") returns empty.


这篇关于通过ASPX定时器控件进行页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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