1

How should I implement a progress indicator gif for an process which is importing data.

On the click of a button, the user browses the input file, selects and clicks on upload button. When the upload button is clicked the progress indicator gif should be displayed. If the file path is empty the progress indicator should not start. Is it possible to disable the page. I am using asp.net mvc 3

Thanks

tereško
  • 58,060
  • 25
  • 98
  • 150
AndyKash
  • 57
  • 2
  • 8
  • possible duplicate of [How to display a "busy" indicator with jQuery?](http://stackoverflow.com/questions/4355268/how-to-display-a-busy-indicator-with-jquery) – Erik Funkenbusch Apr 02 '13 at 19:51

2 Answers2

0

It's not really possible to do this unless you're using Ajax. If you do, then you can simply show the animated gif before starting the ajax call, then hide it on success.

Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
0

look at this:

ASP.Net MVC Loading In Progress Indicator

the idea is simple: create a div with the gif, show the div on the large process and hide the div after.

Naresh Ravlani
  • 1,600
  • 13
  • 28