Click here to Skip to main content
11,924,469 members (58,820 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0
Pls help me in Following issues:provide me code for Apllication can be worked in offline mode.till connect its data to server when its connect online to server.I am using visual basic 10.0 windows form application and mysql database
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 work then to save database and all actions on server.
Posted 1-Feb-13 2:02am
owencampbell 1-Feb-13 7:10am

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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151125.3 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100