更新时间:2023-10-11 18:22:22
你可以检查网络连接。
如果网络关闭,请将日期存储在用户的硬盘上。
网络启动后,将此数据发送至在线服务器。
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.