Results 1 to 4 of 4

Thread: HOW: Off-line feature

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    HOW: Off-line feature

    I wish to give my application an off-line feature but I am unsure what path to take. I don't want to used Access database for the local storage, what are my options? I am using custom objects in my application...

    TIA
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: HOW: Off-line feature

    Sorry, do I already know what your application does in 'online' mode? I may have forgotten. Or you probably assumed we knew.

  3. #3
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: HOW: Off-line feature

    I presume the application is an ASP.NET application. There are many ways including a SQL Server express Database or even XML. Hell if you really wanted to push the boat out you could use comma delimited files. What type of data and how much of it is stored locally will influence your decision.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: HOW: Off-line feature

    I very much doubt that it's an ASP.NET app. A Web application offline basically means a Web application you can't access. More likely this is a Windows app that will be on a system that doesn't always have connectivity, like a laptop or a mobile device. Basically you just need a local database with the same or similar schema to the primary database, such that it can store the data you generate while offline. If you're using SQL Server as the primary database then SQL Server Express or CE might be a good choice for a local database. With Express you can use the same ADO.NET objects and just change the connection string, while CE would require a different data provider. When a database operation fails while online you set a flag to indicate that all data operations should use the local database. You'd then check for a connection to the primary database at intervals or maybe not until the app starts up again.

    I haven't read any of it but you may find some of these useful.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width