Skype在ASP.Net中的实现 [英] Skype in ASP.Net implementation

查看:114
本文介绍了Skype在ASP.Net中的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我看了您的演示如何将Skype集成到ASP.NET应用程序上.

Hi, I saw your demo of how to integrate Skype on ASP.NET application. Is there a way that the Skype application can be opened as part of a asp.net page?

推荐答案

我从未将Skype放入ASP.NET页面.但是,我希望正确的做法是转到skype站点,看看他们是否提供了可以放到网页中的活动X或其他控件.如果有人对作者有疑问,我也会建议您使用提供的论坛,而不是一般性的论坛.
I have never put Skype into an ASP.NET page. I''d expect, however, that the right thing to do would be to go to the skype site and see if they offer an active X or other control that can be put into a web page. I''d also suggest if you have a question for an author, you use the forum provided, and not this general one.


通常,您不应该尝试在客户端上运行程序,这是一个主要的安全问题.

我找到了这个javascript解决方案,但是我不确定今天它是否可以在浏览器安全性提高的情况下正常工作...如果设置正确(例如,将其设置为受信任的站点,启用Activex等),可能就可以了(例如,开始记事本,您必须根据需要进行更改):


< html>
< head>
< script language ="vbscript" type ="text/vbscript">
子运行(名称)
设置objShell = CreateObject("WScript.Shell")
objShell.Run名称
关于错误继续下一个
设置objShell = Nothing
结束子
</script>
</head>
< body>
< a href ="javascript:Run(''file://c:/windows/notepad.exe'');">记事本</a>
</body>
</html>
Generally you should not be trying to run programs on the client, it''s a major security issue.

I found this javascript solution, however I''m not sure that it will work nowadays with increased browser security... it might be ok if you get the settings right i.e. setting as a trusted site, enabling activex etc (example is to start notepad you would have to change as needed):


<html>
<head>
<script language="vbscript" type="text/vbscript">
Sub Run(Name)
Set objShell = CreateObject("WScript.Shell")
objShell.Run Name
On Error Resume Next
Set objShell = Nothing
End Sub
</script>
</head>
<body>
<a href="javascript:Run(''file://c:/windows/notepad.exe'');">notepad</a>
</body>
</html>


这篇关于Skype在ASP.Net中的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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