Question

How to work when internet connection down in a asp.net application ? Means Users are working on application and suddenly internet connection down then user should still be able to add/edit/ delete operation on data, but when internet connection is up then all changes should be done at server. Is that possible, Is there any example available to achieve this?

Thanks.

Was it helpful?

Solution

HTML5 has some offline capabilities. http://www.html5rocks.com/en/features/offline

But do you really have a business case for this? It will get complicated when you need to try and update stale data etc.

OTHER TIPS

This requires use of JavaScript to store local data http://code.msdn.microsoft.com/Working-with-HTML5-local-b0cbe2ef and it needs to check whether the server can be reached before doing a proper postback, or more likely just use AJAX to communicate between the JavaScript application and the server.

There are several applications like this such as Google Mail, and such solutions are more JavaScript based than ASP.NET and you need to avoid relying on the web forms mechanisms and use .NET for building the initial page, dealing with AJAX requests and managing the application data and persistence. See How to write an offline version of an AJAX/ASP.NET web application

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top