Asp.net进度栏根据计时器 [英] Asp.net Progress Bar according to Timer

查看:84
本文介绍了Asp.net进度栏根据计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据ASP.NET中的计时器显示进度条

例如:

我正在为一家软件公司开发Intranet,其中包括每日打孔.
有两节,早上和晚上的第一节和第二节
他们想显示进度条以显示一天的总工作时间.

例如,假设
之后,如果在上午9:00进行一次登录,则进度条应从零开始运行 4小时,其状态应为一半,而8小时后,其状态应为完整

工作时间是8个小时,所以他们想要这样.

任何人都可以帮我解决这个问题,我的时间有限...

I want to show a progress bar according to timer in ASP.NET

Ex:

I am developing an intranet for a software firm,it consists of daily punching.
there are two sessions,session 1 and 2 for morning and evening session
They want to display a progress bar to show the total working time of a day.

ie,say if one login on 9.00 am the progress bar should start running from zero,after
4 hours ,its status should be half and after 8 hours its status should be full

the duration of working time is 8 hors,so they wants like that.

Can anyone please help me for this,i have limited time...

推荐答案

即说,如果上午9点登录一次,进度条应该开始运行从零开始,在
之后 4小时,状态应为一半,8小时后,状态应为满


由于这是时间相关的,因此您可以使用Javascript本身执行相同操作.根据时间,在一定间隔(例如5秒)之后,更新显示.对于这种情况,您甚至不需要任何控制,只需在html中设计一个水平条/表格并不断更新背景填充类即可.

在此处查找 HTML进度栏 [
ie,say if one login on 9.00 am the progress bar should start running from zero,after
4 hours ,its status should be half and after 8 hours its status should be full


Since this is time dependent you can do the same using Javascript itself. Based on the time, after certain interval (lets say 5 seconds), update the display. For such scenario, you don''t even need any control, just keep design a horizontal bar/table in html and keep updating the background fill kind of.

Look here for HTML Progress bar in Javascript[^].

One of the samples: HTML progressbar[^]


http://www.dotnetspark.com/kb/1608-use- timer-trackbar-and-progressbar-controls.aspx [ ^ ]

请随时与我们联系以获取进一步的帮助.
Simply use ProgressBar, StatusBar, Timer in VS.Net

http://www.dotnetspark.com/kb/1608-use-timer-trackbar-and-progressbar-controls.aspx[^]

Please feel free to contact for further help.


这篇关于Asp.net进度栏根据计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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