在网页中显示Windows控件库 [英] Displaying the Windows control library in the web page

查看:71
本文介绍了在网页中显示Windows控件库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经创建了一个Windows控件库,该控件将访问客户端计算机中配置的打印机,以使用某些配置来打印生成的文件.

现在我的系统中有myPage.aspx(具有Windows控件库的页面),当我从其他系统访问它时,它工作正常.

当我尝试访问myPage.aspx并将其部署在服务器中后,它将显示Windows控件库.而不是在那个地方显示空白.
请帮助我解决这个问题.

提前谢谢.
-Muthu pandi

Hi,
I had created created a windows control library and the control will access the printer configured in the client machine to print the generated file with some configuration.

Now i am having the myPage.aspx(Page which is having the Windows Control Library) in the my system and it''s working fine when i am accessing it from some other system.

After deploying it in the server when i am trying to access the myPage.aspx, it''s displaying the Windows Control Library. Instead of that it''s displaying empty space in that place.
Please help me to slove this issue.

Thanks in advance.
- Muthu pandi

推荐答案

在ASP.NET中托管Windows控件不是一个好习惯,它有一些局限性

1-它要求两个客户端计算机都至少安装了.NET可再发行组件.

2- IE 5+浏览器.

3-基于Internet的应用程序不是可行的解决方案.

4-所有控件和库调用必须是安全的".没有文件I/O,没有注册表访问权限,等等.不允许浏览器控制

如果仍要使用此功能,请检查系统的Internet Explorer配置安全策略是否允许它从服务器运行.您可以通过将托管页面识别为受信任"区域来完成此操作.要将您的站点设置为受信任的区域"的一部分,请从IE中选择工具"->选项"->安全性"->受信任的站点",然后将您的站点添加到列表中,然后单击确定".
Hosting a Windows Control in ASP.NET is not a good practice it has several limitations

1- It requires both that the client machines have, at minimum, the .NET redistributable installed.

2- IE 5+ browser.

3- Not a feasible solution for Internet based application.

4- All controls and libraries calls must be "safe". no file i/o, no registry access, etc. the browser control is not allowed

If you still want to use this then check that the Internet Explorer configuration security policy of your system allows it to run from the server. You can do this by identifying your hosting page as belonging to the Trusted zone. To set your site as part of the Trusted zone, from IE choose Tools->Options->Security->Trusted Sites and then add your site to the list and then click OK.


这篇关于在网页中显示Windows控件库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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