Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I am looking at the best way to make my asp.net 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.
 
Thanks
Posted 14-Dec-12 6:21am
Sheritt395
v2

1 solution

Rate this: bad
good
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 asp.net databound controls.
 
You need to understand the concept of getting HTML content using AJAX.
 
A google search just for you![^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,270
2 CPallini 5,190
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2014
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