使用Silverlight 4托管Web应用程序 [英] Hosting a web application using Silverlight 4

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

问题描述

我正在尝试使用普通的文本框和标签托管Web应用程序.
我想做的是,如果我从这台计算机托管Web应用程序,那么另一台计算机应该能够通过LAN完成打开该Web应用程序的操作.

现在有两台机器:实际托管此Web应用程序的主机.和从机:正在尝试通过LAN访问此Web应用程序.

我的网页有各种设置,比如说不同的文本框和保存更改"按钮.现在,如果从属计算机单击,则在Web应用程序中保存更改,我想在主机中创建新的xml,word,txt或任何格式的文件,并在主机中保存所有这些新值或任何更改.此外,发送Windows消息或通知主机机器上的Web应用程序进行了一些更改,因此请更新您的应用程序或类似的内容.

问候,
莫希特.

I am trying to Host web application with normal textboxes and lables.
What i want to do is if i host web application from this machine another machine should be able to open that web application via LAN that''s done now.

Now there''s two machine : host machine which actually hosted this web application. and slave machine: which is trying to access this web application via LAN.

my webpage has various settings let''s say different text boxes and save changes button. now if slave machine clicks save changes in web application i want to create new xml,word,txt or any format file in the host machine and save all those new values or any changes in host machine.Also, send a windows message or notify host machine that there''s been some changes made in web application so please update your application or something similar like that.

Regards,
Mohit.
Areva,Canada.

推荐答案

托管网页(包括Silverlight)需要Web服务器(当您谈论.Net时通常是IIS),但是Apache可以也可以使用),即使您只是在LAN上也是如此.

客户通常无法更改网站/应用程序,因此其余问题毫无意义.
Hosting a web page (including Silverlight) requires a web server (usually IIS when you''re talking about .Net, but Apache can be used as well), even if you''re just on a LAN.

Clients can''t usually change a web site/app so the rest of your question doesn''t make any sense.


Silverlight部分将在客户端上运行(或使用你的话,奴隶机器).如果要将数据保存在服务器上,Silverlight可以使用WCF服务,或者您的Web应用程序可以具有ASP.NET后端.
The Silverlight portion will be running on the client (or to use your word, the slave machine). If you want to save data on the server, Silverlight can either use a WCF service or your web-app can have an ASP.NET backend that will do that.


保存到数据库是简单.拥有与您交谈的WCF服务.
允许所有客户端知道数据库已发生更改非常困难.

您需要使用双工机制呼叫 [ ^ ]或套接字.
Saving to the database is easy. Have a WCF service that you talk to.
Allowing all clients to know that there has been a change in the database is trickier.

You need to implement a notification mechanism using duplex mechanism calls[^] or sockets.


这篇关于使用Silverlight 4托管Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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