js计时器 + asp 计时器
发布日期:2021-08-21 02:35:23 浏览次数:17 分类:技术文章

本文共 658 字,大约阅读时间需要 2 分钟。

JS:

asp:

protected void Timer1_Tick(object sender, EventArgs e)    {        string id = ViewState["mobileid"].ToString();        if (!string.IsNullOrEmpty(id))        {            DataTable dtGps = GBLL.GetList(" imei = '" + id + "' order by intime desc ").Tables[0];            if (dtGps.Rows.Count > 0)            {                string lat  = dtGps.Rows[0]["lat"].ToString();                string lon = dtGps.Rows[0]["lon"].ToString();                hdflog.Value = lon;                hdflag.Value = lat;            }        }    }    protected void timersWatch_Click(object sender, EventArgs e)    {        Timer1.Interval = 10 * 1000;//10秒 开启计时器    }

 

转载地址:https://blog.csdn.net/weixin_33708432/article/details/86307961 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:进位转换(杭电2031)
下一篇:介绍一下内联、左联、右联

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2024年04月14日 09时56分00秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章