需要使用.net开发离线Web应用程序 [英] Need to develop an offline web application using .net

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

问题描述





需要使用.net驱动的SQL Server数据库开发Web应用程序,该数据库也可以在离线环境中运行。



此外,如果用户使用网络在连接模式下进行交易,则效果很好。但是如果用户在离线模式下也想要相同的,即没有互联网连接,它也应该正常工作。之后当它恢复互联网服务时,它应该与数据库服务器同步所有交易。



请建议执行相同的最佳方式。

Hi,

There is a requirement to develop a web application using .net driven with SQL Server database which should also work in an offline environment.

Moreover, If user makes a transaction in the connected mode with the web, it works well. But if user also wants the same in offline mode i.e. without internet connection, it should be working fine as well. After that when it resumes internet service, it is supposed to sync all the transactions with the database server.

Please suggest the best way to perform the same.

推荐答案

如果您打算使用WPF / Winforms客户端应用程序(通过互联网连接到服务器),那么这应该不会太困难,离线数据会存储在localdb中,当你重新上线时,你只需要与服务器同步,你需要考虑记录锁定,但根据数据的不同,它会非常简单。
If you are planning to use a WPF/Winforms client app (which connects to the server over the internet), then this shouldn't be too difficult, the offline data would be stored in a localdb and when you go back online, you would just "sync" with the server, you would need to think about record locking, but it would be very straightforward to do depending on what the data is.


如果您可以向我提供有关将要脱机移动的数据类型以及所需应用程序类型的更多详细信息,我或许可以提出更好的答案。但我现在能想到的只是某种本地javascript应用程序。
If you can give me more details of what type of data is going to be moved offline and the type of app you need, I might be able to come up with a better answer. But all I can think of at the moment is some sort of local javascript app.


您可以使用HTML5的应用程序缓存功能使Web应用程序脱机工作。有关详细信息,请参阅此链接 [ ^ ]
You can use HTML5's Application cache feature to make the web application work offline. For more details refer this link [^]


这篇关于需要使用.net开发离线Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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