JS:

<script type="text/javascript">

        var counts = ;
function starts() {
if (counts == ) {
alert('已经开启了实时监控!')
return false; }
if (confirm("确定开启实时监控?")) {
setInterval("GetJSMapGps()", ); //15秒
counts = ;
return true; }
else return false; }
function dw() { appletFrame.s_locationSet(124.805832, 46.571381);
} function GetJSMapGps() { var gpsX;
var gpsY;
gpsX = window.document.getElementById("hdflog").value; //经度
gpsY = window.document.getElementById("hdflag").value; //纬度
if (gpsX != null && gpsX != "" & gpsY != null && gpsY != "") {
appletFrame.s_locationSet(gpsX, gpsY); } } </script>

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[];
if (dtGps.Rows.Count > )
{
string lat = dtGps.Rows[]["lat"].ToString();
string lon = dtGps.Rows[]["lon"].ToString();
hdflog.Value = lon;
hdflag.Value = lat;
}
}
}
protected void timersWatch_Click(object sender, EventArgs e)
{
Timer1.Interval = * ;//10秒 开启计时器
}

最新文章

  1. java多线程实现方式
  2. 《连载 | 物联网框架ServerSuperIO教程》- 3.设备驱动介绍
  3. Supercell only provide the best games for players
  4. Arcgis for JS之Cluster聚类分析的实现(基于区域范围的)
  5. sql server中NULL导入decimal字段时报错
  6. Oracle数据库和MySQL数据库的不同之处
  7. SpringMVC3的ResponseBody返回字符串(JSON)乱码问题解决
  8. Android 高级UI设计笔记16:ViewStub的应用
  9. MySQL Server-id的作用
  10. 图片滚动js 实现图片无缝滚动
  11. MySQL(15):Select-distinct(返回非重复的记录)
  12. Css3做的旋转显示文字和角度的变化
  13. MySQL 存储过程创建表
  14. C# xml 读xml、写xml、Xpath、Xml to Linq、xml添加节点 xml修改节点
  15. ios &#160;调整 label 的字体行间距
  16. 高版本的jdk编译过的项目移到低版本的JDK的eclipse中出错的问题
  17. DMS路由表
  18. 十四年风雨路 苹果iMac电脑进化论
  19. 零基础学习openstack【完整中级篇】及openstack资源汇总
  20. border.css(解决移动端1px问题)

热门文章

  1. Java 线程池的原理与实现
  2. myeclipse2013以及以后的最新版各种破解(其实就是获取活跃码而已)
  3. 关于hr标签兼容个浏览器的代码
  4. jexus ASP.NET开发注意项1
  5. 如果我用C#来输出99表
  6. 跟我一起学WCF(12)——WCF中Rest服务入门
  7. 设计模式之美:Structural Patterns(结构型模式)
  8. JsRender for index 循环索引使用说明
  9. adblockTester通过js检测用户浏览器是否安装了AdBlock
  10. [BTS] Deploy Command