Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to show a percentage bar in a web page based on some calculation like
if i an going to make a love calculator then the result must show in a Bar with some percent come from calculation. can anyone help me?
Posted
Comments
bbirajdar 12-Mar-13 10:55am    
not possible. You cannot know in advance how much time it will take to execute and get the result back to user's browser...
deepak Singh m 12-Mar-13 11:20am    
at this time i am not considering time taken in execution by an application. i simply want to display any value like 42% in a bar which will look like a progress bar and 42% fill with any color and 58% must be empty.
Adam David Hill 12-Mar-13 11:01am    
I'm not sure the asker is talking about execution times. Sounds like they simply wish to display any given % value on a gauge / control.
deepak Singh m 12-Mar-13 11:17am    
i simply want to show my any result in percentage on a bar only....

1 solution

You could use a progress bar control to display a percentage value. Please refer to the full tutorial here:

http://www.asp.net/ajaxlibrary/jquery_ui_mvc_progressbar.ashx[^]
 
Share this answer
 
Comments
bbirajdar 12-Mar-13 15:16pm    
Good one +5

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