使用.Net如何开发在线和离线工作的应用程序。 [英] using .Net how to develop application that work Online and offline.

查看:59
本文介绍了使用.Net如何开发在线和离线工作的应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用.Net如何开发在线和离线工作的应用程序。



当没有互联网连接时,它应该离线存储数据。



当有互联网连接时,它应该将所有数据在线上传到主服务器。

解决方案

你可以检查网络连接。



如果网络关闭,请将日期存储在用户的硬盘上。

网络启动后,将此数据发送至在线服务器。



HTML5具有离线存储功能 - http:/ /www.codemag.com/Article/1112051 [ ^ ]。



当然,对于大数据,这可能不是最佳解决方案。

需要考虑其他方法。

using .Net how to develop application that work Online and offline.

When there is no internet connection it should store data offline .

when internet connection is there then it should upload all data online it to main server.

解决方案

You can check for network connectivity.

If network is off, store date on the hard drive of the user.
Once the network comes on, send this data to the online server.

HTML5 has an offline storage capability - http://www.codemag.com/Article/1112051[^].

Of course, for large data, this may not be the most optimal solution.
Other approaches will need to be considered.


这篇关于使用.Net如何开发在线和离线工作的应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆