如何使用aspx文件打开窗体? [英] How to open windows form using aspx file?

查看:100
本文介绍了如何使用aspx文件打开窗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个项目,其中包含单个解决方案中的多个项目。现在我需要使用javascript.my项目远程在服务器上从asp文件中打开form1.cs打开窗口。任何帮助和建议都将是值得赞赏的。



我的尝试:



i tired document.location javascript属性..

I'm working on a project which contains several projects inside of single solution. now I required opening the windows from say form1.cs from the asp file using javascript.my project is remotely on the server. any help and suggestion will be appreciatable.

What I have tried:

i tired document.location javascript property ..

推荐答案

你无法从aspx文件中有用地打开一个Windows应用程序:C#(和VB)代码运行在服务器,而不是客户端,所以用户永远无法看到它,除了在客户端和服务器是同一台机器的开发中。



你可以'从Javascript打开Windows应用程序,除非出于安全原因在极端异常的情况下。 (客户端必须使用IE,具有ActiveX控件下载权限,并且具有ActiveX运行权限 - 两者都默认为关闭.IE是大多数人仅在企业环境强制使用时使用的死鸭,并且企业环境通常有适当的策略来阻止ActiveX控件运行。)



基本上:你无法从网站上打开一个Windows应用程序。如果可以的话,勒索软件将是一个比现在更大的问题......
You can't usefully open a windows application from an aspx file: C# (and VB) code runs on the server, not the client, so the user would never be able to see it, except in development where the client and the server are the same machine.

You can't open a Windows application from Javascript either, except in extremely unusual circumstances for security reasons. (The client must be using IE, have ActiveX control download permission given, and have ActiveX run permission given - both of which default to "off". IE is a dead duck that most people only use when the corporate environment forces them to, and the corporate environment normally has policies in place to prevent ActiveX controls running.)

So basically: you can't open a windows application from a website. And if you could, ransomware would be an even bigger problem than it is now...


这篇关于如何使用aspx文件打开窗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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