62,267
社区成员
发帖
与我相关
我的任务
分享
protected void time1_Tick(object sender,EventArgs e)
{
string time1=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
string time2="2012-04-25 19:10:00";
if(time1.Equals(time2)){
//lvBind是你的数据绑定时间.
lvBind();
}
}
原理就是:每隔多长时间获取一次系统时间,当系统时间与设定的时间相等时,执行数据绑定函数