Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello friends.
I am designing a system where the requirement is as follows:
I have to send a large file (10mb +) to asp.net through AJAX. The file will be sorted in the server and it will take time. I have to notify the client the status of the sorting accurately.Suppose I am sorting 100 sets of data from the file. In this case I have to notify the client after sorting of each set is finished.
How can I do it?
Any suggestion with link to implementation would be highly appreciated.
Posted

1 solution

You can achieve it through tow way

- On client side, run a timer that will check periodically if any notification available from DB and for notification update the database.
- Second is, use SignalR through this register a method on client side and on server side once you done your sorting then call this method. That method will notify automatically on client side through Jsrcipt.
http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900