how to detect if an application is set to "work offline"

M

Mark Kamoski

Hi--

How can one detect, programmatically, if an application is set to "work
offline"?

The situation is this. I have a project hosted at a site on the web. When I
am developing locally, I simply check "work offline" and then I can run the
VS.NET debugger and step-through code, and so on. When I am ready to
"publish" my changes, I simply uncheck "work offline" and the web syncs
just fine.

However, the idea is to have the application "know" when it is set to "work
offline" so it can use the local database instead of the one at my hosting
location.

Do you happen to know how this can be done in code?

Please advise.

Thank you.

--Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top