开发者

Assigning a jQuery progressbar value from SQL using jQuery/C# Asynchronously

开发者 https://www.devze.com 2023-04-10 06:41 出处:网络
I have a SQL server that does a back-end function that updates a field on a table with progress-percentage. I would like to efficiently update the value of the progressbar dynamically.

I have a SQL server that does a back-end function that updates a field on a table with progress-percentage. I would like to efficiently update the value of the progressbar dynamically.

The webpage is a C# .aspx page and the progressbar开发者_运维问答 is created using jQuery-UI.

What is the best method for doing so?

Thanks


In order you update the progress bar in real time you have to make asynchronous calls to the server to check the data. This is done using AJAX. There are many ways to do it using AJAX (ex. JS code, AJAXControlToolkit, etc). You'll have to decide which is the best option for you.

AJAX Wiki: http://en.wikipedia.org/wiki/Ajax_(programming)

ASP.NET AJAX Tutorials: http://www.aspnettutorials.com/tutorials/ajax/

AJAXControlToolkit: http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/

AJAX w/ jQuery: http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号