Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi All
I have a web application uploaded to the internet
i need to store data from client machine in the local if the internet down and re send it if the internet back
what your advice to me and what i use to doing this thing
Help me plese
Posted

Hi,
You can check the internet connection if it is OK, then decide to whether to save data to server or on the client. Then, in a proper time you can transfer client date to server. In order to save data on client machine you may use HTML5, sessionStorage or something else if the scale of data to be stored can not be saved in cookies.

Take a look at these posts:

How to realize if the internet connection is OK:
http://stackoverflow.com/questions/9017891/net-webexception-to-check-if-local-machine-has-internet-access[^]

HTML5 and webStorage:
HTML5 Web Storage in Essence[^]

Hope it will help,
Cheers
 
Share this answer
 
thank you very much to answer
The way to check to internet connection is wonderful
but i have a problem with HTML5 because i use ASP.Net C# and Sql Server Database
and the amount to data to store is like table in database
do you have another way to store the data in the client machine and re send it after the internet connection back?
Regard
 
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