使用.net和jquery的Web App [英] Web App using .net and jquery

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

问题描述

我希望在网络断开或我的产品中没有网络时本地保存数据...

网络连接后,我需要将此数据更新到我的实时服务器.. 。

有谁可以帮帮我?

解决方案

问题有点混乱?你的是网络应用程序。所以它总是需要连接。

如果您在客户端浏览器中加载页面后谈论网络,那么没有什么可以帮助您。你甚至需要连接来处理J Query调用,因为他们会试图在某处保存数据。



你还在谈论Web服务器和数据库之间的连接吗?

然后您可以将数据保存在缓存中,然后一旦连接恢复,您就可以处理从缓存到数据库的数据。这与缓存规则相反。您还需要一些查看网络状态和缓存数据的服务。如果您不确定何时恢复网络,则无法使用数据集或会话。

最后,您应该比较保持所有这些努力与使网络始终可用的价值。请记住你的是网络应用程序。


你好Vasudevan,



我曾经在我的客户类似的项目上工作将笔记本电脑带到远程工作站并更新他在本地数据库上的工作,然后返回服务器位置并将他的工作上传到主数据库。



如果你的场景与我的相似,请查看SQL Server 2008提供的Sync Framework。我可以提供更多相关信息。



请告知我们。 />


快乐编码..!



谢谢,

Vamsi

I want to save the data locally when network is disconnected or network is not available in my product...
After the network connected, i need to update this data to my live server...
Can anyone please help me?

解决方案

Question is little confusing? Yours is web application. So it always need connection.
If you are talking about network down after page load in clients browser, nothing can help you. You need connection even for processing J Query calls as they will be trying to save data somewhere.

Also Are you talking about connection between web server and database?
Then you can save data in cache and then once connection is restored, you can process data from cache to database. This is reverse of caching rules. Also you need some service looking at network status and cached data. You can not use data set or sessions if you are not sure when network will be restored.
Finally you should compare the worth of keeping all this efforts against making network available all the time. Keep in mind yours is web application.


Hi Vasudevan,

I''ve worked on a similar project where my client takes the laptop to a remote workstation and updates his work on the local DB, then gets back to the server location and uploads his work into the Main DB.

If your scenario is similar to mine, then please do look into Sync Framework provided by SQL Server 2008. I can provide more info on this.

Please let me know.

Happy Coding..!

Thank you,
Vamsi


这篇关于使用.net和jquery的Web App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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