alok kumar

alok kumar

  • NA
  • 41
  • 425

Getting the state of process in ASP.NET web application

Jun 27 2017 11:46 AM
Hi Everyone,

I have a web page for importing excel sheet and create the items in DB. While creating I have to show the progress of item creation in a progress bar i.e. suppose a user imports sheet having 100 records and 10th record is inserting in to the DB. I have to refresh the status area of page after 2 second and show the following message and progress bar.

Processing 10 out of 100 record.

Also user can Cancel the import process any time. Please help me how will I get the following data:-
1. Which record is in process now?
2. On Cancel, how my import method will know that user has cancelled the import?

I am using MVC 5 in my web application.
 
Thanks in Advance,
Alok... 

Answers (1)