远程调用客户端的dll? 可能吗?感觉很危险阿
解决方案 »
- 关于InfoDataGridView的问题
- gridview中使用RadioButton
- AutoCompleteExtender输入拼音查找汉字
- 紧急求助!C#.net的treeview绑定sql数据库,单击树形图节点,右边区域显示相应数据
- 问一个关于缓存数据的问题?我不想缓存整个页面,也不想缓存用户控件,我只想把dropdownlist 中的数据缓存下来,5分钟,如何做呢?
- 在移动web窗体中使用基于form的用户验证,系统好像不会自动写cookie?
- 急!关于UltraWebGrid进行数据库更新的问题!
- 问一个关于showModelessDialog()的问题
- 怎样得到<iframe>中Page当前的URL,我用src只得到最初设置的src
- 请教:一小段程序的C#写法。(在线等待)
- 请问要给自己的站点使用证书是否一定得花钱购买
- C#里面可以调用delphi做的组件么
在IE中托管.NET Windows Forms
http://www.yesky.com/SoftChannel/72342380484755456/20030701/1711401.shtml
如果不是,写个com组件,封装dll,再用javascript调用,
做成Web Service
com等差不多
我也听说COM可以调,可是我对js不熟悉,能不能写个例子给我,谢谢!
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function postxml()
{
debugger;//调试,可以不要,
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");//在客户端建立一个msxml组件的实例
xmlhttp.Open("POST" , "http://localhost/postxml/5.asp" , false);//调用他的方法
xmlhttp.Send( "<he>" + x.value + "</he>");
answer.innerText = xmlhttp.responseXML.firstChild.xml;
}
</script>
</head><body bgcolor="#FFFFFF" text="#000000">
<input id=x size=10><span id="answer"></span>
<input type = button value="squre" onclick = "postxml();">
</body>
</html>
<%
if Request.ServerVariables("REQUEST_METHOD") ="POST" then
SET LISTIN = Server.CreateObject("Microsoft.XMLDOM")
SET LISTOUT = Server.CreateObject( "Microsoft.XMLDOM")
listin.load( Request )
str = listin.documentElement.text
str=Cint(str)*Cint(str)
str = Cstr(str)
listout.loadXML("<ddout>"&str&"</ddout>")
Response.ContentType = "text/xml"
listout.save(Response)
else
Response.Write("haha")
end if
%>
上边的例子是书上的抄的基于asp的,大概是这个思路
还有这个dll最好放在%System32%下。
能不能把你做的这个东西发给我,我看看,谢谢!很急.