Click here to Skip to main content
15,945,119 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted
Comments
[no name] 1-Mar-11 2:24am    
What stuff you made for this?

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900