Click here to Skip to main content
15,894,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to save the data locally when network is disconnected or network is not available in my product...
After the network connected, i need to update this data to my live server...
Can anyone please help me?
Posted
Updated 8-Apr-13 22:39pm
v2
Comments
Vasudevan D 12-Apr-13 9:08am    
Actually what I am trying is, My product is like a a swimschool product...
I will load the page in nexus and i will put into the swiiming pool, where net connection wiill not being sure at long time.. So after some hours i will take the system and connected in network means i have to update my data(which i have entered when i am inside the swimming pool)...
Vasudevan D 12-Apr-13 9:39am    
pLease tell me a favour logic...

Question is little confusing? Yours is web application. So it always need connection.
If you are talking about network down after page load in clients browser, nothing can help you. You need connection even for processing J Query calls as they will be trying to save data somewhere.

Also Are you talking about connection between web server and database?
Then you can save data in cache and then once connection is restored, you can process data from cache to database. This is reverse of caching rules. Also you need some service looking at network status and cached data. You can not use data set or sessions if you are not sure when network will be restored.
Finally you should compare the worth of keeping all this efforts against making network available all the time. Keep in mind yours is web application.
 
Share this answer
 
Hi Vasudevan,

I've worked on a similar project where my client takes the laptop to a remote workstation and updates his work on the local DB, then gets back to the server location and uploads his work into the Main DB.

If your scenario is similar to mine, then please do look into Sync Framework provided by SQL Server 2008. I can provide more info on this.

Please let me know.

Happy Coding..!

Thank you,
Vamsi
 
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