Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
v2

1 solution

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![^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900