简体   繁体   English

通过解析一些参数从Web asp.net触发服务器上的.net应用程序

[英]trigger a .net application on the server from web asp.net with parsing some argument

I dont know whether this is possible but it would be great if there is a solution for this: 我不知道这是否可能,但是如果有解决方案,那会很好:

I have an asp.net webpage. 我有一个asp.net网页。 When the user opens a webpage. 当用户打开网页时。 I would like that webpage to trigger to run a .net application running on the client machine. 我希望该网页触发运行在客户端计算机上运行的.net应用程序。 In addition, during that trigger, that webpage also passes some parameters as arguments to the .net application. 此外,在触发期间,该网页还将一些参数作为参数传递给.net应用程序。

I hope to get some ideas how to achieve this issue somehow? 我希望得到一些想法,以某种方式解决此问题?

thanks in advance. 提前致谢。

Pretty vague question, but you might look into either: 模棱两可的问题,但您可以考虑以下任一个:

  1. SignalR - a long polling library for ASP.Net that lets you make calls to client side code from the server side "faking a persistently open connection" SignalR-ASP.Net的一个长轮询库,可让您从服务器端调用客户端代码“伪造持久打开的连接”

  2. Node.js - a javascript library for the server-side. Node.js-服务器端的JavaScript库。

I would suggest starting with SignalR 我建议从SignalR开始

Edit: 编辑:

https://github.com/SignalR/SignalR https://github.com/SignalR/SignalR

http://chatapp.apphb.com/ http://chatapp.apphb.com/

See this question: Running application from browser ASP.NET 看到这个问题: 从浏览器ASP.NET运行应用程序

In short you can't do this with HTML & JS, you may be able to with silverlight depending on what you want to do 简而言之,您无法使用HTML和JS进行此操作,您可能可以使用silverlight,具体取决于您想做什么

Do you have control over the client-side app? 您可以控制客户端应用程序吗? If so, Click Once is one approach. 如果是这样,单击一次是一种方法。 Silverlight is another. Silverlight是另一个。

For a general purpose solution, the app either needs to be registered with the browser for a specific MIME type (this is how the browser knows to start Acrobat Reader for PDF files, for example), or you would need to create and have your users install an Active-X plug-in (native C++ code, though). 对于通用解决方案,需要为浏览器注册特定MIME类型的应用(例如,这是浏览器知道如何启动Acrobat Reader的PDF文件的方式),或者您需要创建并拥有用户安装Active-X插件(不过是本机C ++代码)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM