在asp.net中创建一个旋转器 [英] create a rotator in asp.net
本文介绍了在asp.net中创建一个旋转器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我如何添加一个旋转器,该旋转器每秒在asp.net中使用特定变量检查数据库基值.
can somebody tell me how to add a rotator that checks the database base values after every second with a specific variable in asp.net.
推荐答案
一个简单的JavaScript计时器,用于按设定的时间间隔执行功能:
http://www.w3schools.com/js/js_timing.asp [ http://api.jquery.com/jQuery.post/ [
You can use a simple JavaScript timer to execute a function on a set interval:
http://www.w3schools.com/js/js_timing.asp[^]
You can use jQuery to easily load/replace content in an HTML element, using POST:
http://api.jquery.com/jQuery.post/[^]
Put the .post() call in your timer and update your page in the response. Your server will need a script that exposes a bit of HTML that you can put into your page on each request. That script will need to access your database.
If you''re having trouble getting any of these pieces going, feel free to create new questions with specifics.
Cheers.
这篇关于在asp.net中创建一个旋转器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文