views:

258

answers:

3

How to write an offline silverlight application? In which I have a database running on databse server,Application running on application server ,however if user wants to run the application in offline mode then the same ui can be seen to him in offline also all the data stored locally in the files which can be synchronised later.

+2  A: 

Your question can be divided in two I think:

1) How to build out-of-browser Silverlight applications?

You can do that since Silverlight 3. See for example here: http://msdn.microsoft.com/en-us/magazine/dd882515.aspx

2) How to have offline access to data that is normally online?

You need to implement a cache mechanism that locally stores the data using isolated storage. See for example here: http://blogs.msdn.com/brada/archive/2008/06/26/data-focused-silverlight-demo.aspx

Konamiman
What data synch mechanism used when do online??
kunal rai
A: 

Well, you could choose to cache the SL control using < IE 7.0 'Make page available offline'... This page could then use navigator.Online to check if the browser is working offline... If so, you could elect to use Isolated Storage or Google gears via JavaScript bridge...

Note: IE 7.0 and above you could make an RSS feed for your page available to enable the same behavior...

Seems navigator.Online has been around in IE for sometime.

IE 8.0 even has an event handler for offline mode toggle...

Vyas Bharghava
A: 

As local database you can use siaqodb - http://siaqodb.com , it has small footprint, fast and easy to use...

sqo