iframe中母版页中的计时器控件 [英] timer control in iframe in master page

查看:142
本文介绍了iframe中母版页中的计时器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在
中显示日历事件的提醒 我的申请
它工作正常,但是显示提醒弹出窗口时,页面会刷新,我丢失了值
在refresh

i have to show the reminders of calendar events in
my application
it is working fine but when the reminders popup is shown the page gets refreshed and i lost the values
any ideas to retain those values on refresh

推荐答案

上保留这些值的任何想法如果是日历事件,则不需要保持状态,也不需要计时器.您可以拥有静态已知的日历事件集合.在页面加载事件中,获取当前时间并与此集合进行比较.

If it is a calendar event, you don''t need to keep state, there is not need in timer as well. You can have a collection of calendar events statically know. In page load event, get current time and compare with this collection.

System.DateTime pageLoadTime = System.DateTime.Now;



这个时间的准确性对于日历事件已经足够了:).

—SA



The accuracy of this time is quite enough for calendar events :) .

—SA


这篇关于iframe中母版页中的计时器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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