Progress Bar VS 2012 Web Form

The following article describes how to implement a progress bar on a Windows form.

http://www.c-sharpcorner.com/UploadFile/mahesh/WorkingwithProgressBarinCSharp11302005045625AM/WorkingwithProgressBarinCSharp.aspx

Is there an article that describes  how to implement a progress bar on a Web form in asp.net 4.0 and C#?

Thanks,
DovbermanAsked:
Who is Participating?
 
Chinmay PatelConnect With a Mentor Enterprise ArchitectCommented:
for a modern technique look here(this is something I would do). Even if you are not displaying file upload progress this is something you can easily use.
http://www.dotnetbips.com/articles/859d32c8-945d-4e5d-8c89-775388598f62.aspx

also here is another way to implement it:
http://www.aspdotnet-suresh.com/2010/10/how-to-show-progressbar-during.html

if you are willing to create a control on your own then look here:

http://www.beansoftware.com/ASP.NET-Tutorials/ProgressBar-User-Control.aspx
0
 
DovbermanAuthor Commented:
These seem more complex than the progress bar of VB.

I will try them and give feedback.

Thanks,
0
 
DovbermanAuthor Commented:
I am trying a label control whose text is incremented each time a loop counter reaches 400.

int intProgressIncrement = 0;

for (int i = 0; i <=8000 ; i++)
      Do Stuff
      intProgressIncrement++
      if (  intProgressIncrement ==400)
       {
              lblProgress.Text = lblProgress.Text + "->";
              intProgressIncrement = 0;
       }

//lblProgress.Text  will look like "->->->->" etc.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Chinmay PatelConnect With a Mentor Enterprise ArchitectCommented:
Any specific issue you are facing? You could use AJAX and a WebMethod polling mechanism.

Check this simple article:
http://blogs.microsoft.co.il/gilf/2008/10/04/aspnet-ajax-pagemethods/

and to understand the concept of Pagemethod in detail:
http://encosia.com/why-do-aspnet-ajax-page-methods-have-to-be-static/
0
 
DovbermanAuthor Commented:
The label text should display another "->"

There is no error, but the label text does not get updated.
   
      for (int i = 0; i <=8000 ; i++)
       {
                intProgress++;
               
                if (intProgress == intProgressIncrement)  // increment is 300
                {
                    lblProgress.Text = lblProgress.Text + strProgressChar;  // Text is not updated
                    intProgress = 0;
                }

        }  // End  while ((line = sr.ReadLine()) != null)


Do I need a delay?
0
 
Chinmay PatelEnterprise ArchitectCommented:
Please post both client and sever side code related to progress bar.
0
 
DovbermanAuthor Commented:
There is no progress bar.  I am using a label control.
0
 
Chinmay PatelEnterprise ArchitectCommented:
Ok. Post your client side code markup and script as well as server side code especially the page method.
0
 
DovbermanAuthor Commented:
Thank you
0
 
Chinmay PatelEnterprise ArchitectCommented:
Glad I could help. :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.