c#asp.net如何从iframe调用dll

时间:2014-10-14 11:23:24

标签: c# asp.net iframe

我有一个像这样调用的dll:

http://xxxx/dllFile.dll

出于安全原因,我想隐藏来自浏览器的dll调用,我问开发该页面的公司隐藏了这个dll调用,这是他们的答案:

There’s no development to hidden the url for the “chat.dll”.

The most simple is making an alternative start page. On this page have an “IFrame” and inside will contain the complete chat. Thus hidden all chats urls, and show only the URL from the start page.

所以我开始研究他们的建议。 我有这样的iframe:

<iframe>

    </iframe>

我的问题是如何从这个iframe调用该dll文件的?

谢谢

1 个答案:

答案 0 :(得分:1)

要告诉iframe从网址加载其内容,只需设置其src属性:

<iframe src="http://xxxx/dllFile.dll">