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 ?
Srikanth 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.
http://darrenjohnstone.net/2008/07/15/aspnet-file-upload-module-version-2-beta-1/
http://neatupload.codeplex.com/
Below is a very useful article describing the same scenario.
http://www.codeproject.com/KB/aspnet/FileUploadWithProgress.aspx
http://www.codeproject.com/KB/aspnet/FlashUpload.aspx
http://www.codeproject.com/Articles/10940/Percentage-Complete-Progress-Bar-100-Completed-ASP