Click here to Skip to main content
Rate this: bad
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 6:21am
Edited 14-Dec-12 7:28am

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
Your Filters
0 Sergey Alexandrovich Kryukov 895
1 OriginalGriff 523
2 thatraja 245
3 Abhinav S 243
4 Emre Ataseven 200
0 Sergey Alexandrovich Kryukov 8,142
1 OriginalGriff 4,665
2 Peter Leow 3,774
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107

Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid