ASP WCF服务更新网页 [英] ASP WCF Service updating Webpage

查看:61
本文介绍了ASP WCF服务更新网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试编写一个简单的ASP.NET网页,该网页获取其数据(对象列表)
从本地运行的C#WPF程序.因此,我在ASP.NET中创建了WCF服务. 项目.从本地程序调用我的服务方法可以正常工作.我现在的问题是,调用服务方法时如何更新网页,如何从Web服务访问网页?这有可能吗?

亲切的问候
Manu

Hello,

i am trying to write a simple ASP.NET Webpage, that get its data (list of objects)
from a local running C# WPF program. Therefore i created a WCF Service in my ASP.NET
project. The call of my service methods from my local program works fine. My question now is, how can i update the webpage when calling the service methods, how can i access my webpage from the webservice? Is this possible at all?

Kind Regards
Manu

推荐答案

您最好的选择是查找COMET/反向AJAX,SignalR和Jquery/Javascript Ajax回调.
http://en.wikipedia.org/wiki/Comet_(programming) [ http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx /< ASP.NET MVC,SignalR和基于Knockout的Real时间UI同步-适用于共同工作的UI和持续客户端 [
Your best bet is to lookup COMET / Reverse AJAX, SignalR and Jquery / Javascript ajax callbacks.

http://en.wikipedia.org/wiki/Comet_(programming)[^]
http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx[^]
ASP.NET MVC, SignalR and Knockout based Real time UI syncing - For Co Working UIs and Continuous Clients[^]


这篇关于ASP WCF服务更新网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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