Click here to Skip to main content
13,297,799 members (47,220 online)
Rate this:
Please Sign up or sign in to vote.
I am looking at the best way to make my web forms application be available offline. A lot of the controls in my application are bound to a linqdatasource.

Would I need to move all Linq CRUD code-behind and databound linq queries to my linq classes or should I just keep checking to see if the internet goes offline and then create a new datasource from localstorage or cache. I am just learning about this and would like some direction from those of you that know more about this.

Posted 14-Dec-12 7:21am

1 solution

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

Solution 1

When working offline, the only real tool you have to get data from the server is ajax as anything else can't have error handling wrapped around it. You risk the chance for HTTP 502, 400, 500 default response pages to be rendered as part of your user experience.

There's no reason why your AJAX request can't collect the result of any control, including your desired databound controls.

You need to understand the concept of getting HTML content using AJAX.

A google search just for you![^]

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 |
Web01 | 2.8.171207.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2017
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