ASP.NET - Help with panel ? - Asked By miho stumi on 26-Jan-12 05:36 AM

Hi i got css:

#P1 {
   background: url(percentage-bg.png) no-repeat left center;
   width: 600px;
   height: 39px;
   margin: 0 auto;
#P2 {
   background: url(progress.png) no-repeat left center;
   width: 0%; /* SET THIS TO GET THE DESIRE LEVEL */
   height: 39px;

and in code i did something like this:

 protected void Button1_Click(object sender, EventArgs e)
        P2.Width = int.Parse(TextBox1.Text);       
but something is wrong because when i write 50% in textbox and click button progress bar was fill in only in 1/8 length,how can i change it, example for 50% it will fill in 1/2 length ?
Sri K replied to miho stumi on 26-Jan-12 06:16 AM
I think it is better refer this links for Creating the Progress bar Percentages in ASP.NET
Refer these links for ready made free file-upload progress bar control with full source code.

Below is a very useful article describing the same scenario.
smr replied to miho stumi on 30-Jan-12 06:24 AM

use this below code to increase progress bar

Progressbar1.Value = 1;