Click here to Skip to main content
15,895,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Pls help me in Following issues:provide me code for Apllication can be worked in offline mode.till connect online.save its data to server when its connect online to server.I am using visual basic 10.0 windows form application and mysql database
C#
can work online and auto-save its database and all actions on server.

can work offline and save its database on pc .. till it connect online ..auto-save work then to save database and all actions on server.
Posted
Comments
owencampbell 1-Feb-13 7:10am    
Hi,

What code do you have at the moment? I'd rather suggest fixes to your current code then write a random app for you.
pankajgarg1986 1-Feb-13 7:11am    
currently i have no code.can you pls suggest me the write code for doing that task

1 solution

As you will probably want to see the data you entered during online session also when you are offline, I suggest the following approach:
1) determine what subset of the remote database you could need when offline
2) add a local database to your application; an embedded one for example, it can be also an other implementation than mysql (google for them, there are many)
3) make your application to work directly in the local database
4) make a distributed transaction based synchronization task/service that will do sync often when online and has the logic to reestablish connection as possible
 
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