如何使用线程更新网格视图 [英] how to update grid view using threading

查看:79
本文介绍了如何使用线程更新网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我,

在我的数据库中,我有一张桌子.表数据连续变化,我在网格视图中称为该表,因此我只想每5秒钟使用多线程更新一次此网格视图.我不希望完整的页面更新或usina ajax等.
我只想仅使用多线程来更新它...

hi friends,

I,

in my database i have one table. the table data changes continuosly,i called this table in my grid view so i want to update this gridview for every 5 sec using multi threading only. i dont want complete page update,or usina ajax, etc..
i want update it only with multithreading only...

推荐答案

不涉及多线程.

您可以通过使用AJAX查询数据库并刷新网格内容来完成此操作.有很多资源可以解决这个问题,您应该不难发现一些东西.
There is no multi-threading involved.

You can accomplish this by using AJAX to query your database and refresh the the contents of the grid. There are a multitude of resources that cover this, you should have no difficulty finding something.


这篇关于如何使用线程更新网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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