从ASP转换为ASP.NET C#网站 [英] Convert from ASP to ASP.NET C# website
问题描述
我需要将这2页转换为asp.net c#website
1.Delete.asp
< title>删除指纹
< ; - 用于捕获手指数据的BioPlugin ActiveX控件 - >
< OBJECT ID =BioPlugInActXWIDTH = 0 HEIGHT = 0 CLASSID =CLSID: 05E8280C-D45A-494F-AE42-840A40444AFF>
< param name =_ Versionvalue =65536>
< param name =_ ExtentX value =2646>
< param name =_ ExtentYvalue =2646>
< param name =_ StockPropsvalue = 0>
删除指纹
注册ID |
2.)process-delete.asp
< title>处理 - 删除
<%
'Incase网络服务抛出异常。
'出错时接下来
dim objDoc,objSOAPClient
set objDoc = Server.CreateObject(Msxml2.DomDocument.3.0)
set objSOAPClient = Server.CreateObject(MSSOAP.SoapClient)
sPath =http ://localhost/bioplugin.asmx?wsdl
objSOAPClient.ClientProperty(ServerHTTPRequest)= true
objSOAPClient.MSSoapInit(sPath)
if err.number<> 0然后
Response.write(
Web服务调用失败!
)else
dim xml
xml = objSOAPClient.DeleteID(Request.Form(ID))
'显示
Response.WriteCode:& xml&
Response.Write(返回)
结束如果
%>
我尝试了什么:
我尝试过在线工具,不工作
I need to convert these 2 pages to asp.net c# website
1.Delete.asp
<title>Delete fingerprint
<!-- BioPlugin ActiveX control to capture finger data -->
<OBJECT ID="BioPlugInActX" WIDTH=0 HEIGHT=0 CLASSID="CLSID:05E8280C-D45A-494F-AE42-840A40444AFF">
<param name="_Version" value="65536">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="2646">
<param name="_StockProps" value="0">
Delete Fingerprint
Registration ID |
2.) process-delete.asp
<title>Process-Delete
<%
'Incase web service throws an exception.
'on error resume next
dim objDoc, objSOAPClient
set objDoc = Server.CreateObject("Msxml2.DomDocument.3.0")
set objSOAPClient = Server.CreateObject("MSSOAP.SoapClient")
sPath = "http://localhost/bioplugin.asmx?wsdl"
objSOAPClient.ClientProperty("ServerHTTPRequest") = true
objSOAPClient.MSSoapInit(sPath)
if err.number <> 0 then
Response.write("
Web Service Call Failed!
")else
dim xml
xml = objSOAPClient.DeleteID(Request.Form("ID"))
'Display
Response.Write "Code: " & xml & "
"
Response.Write("Go Back")
end if
%>
What I have tried:
I tried online tools ,not working
推荐答案
那里这个经典ASP页面集真的没什么特别之处:
页面1.没有提供经典ASP代码;只要浏览器是IE,ActiveX控件就是有效的HTML。
Page 2. C#的简单SOAP流程 - 数千个代码示例。
您可能想查看Bio-Plugin的SDK,可能有更新的版本,他们可能有一些代码示例。
找到了这个SDK的CodeProject文章:
使用M2SYS SDK进行指纹识别器集成 [ ^ ]
There really is nothing special about this Classic ASP page set:
Page 1. There is no Classic ASP code presented; the ActiveX control is valid HTML as long as the browser is IE.
Page 2. Simple SOAP process for C#- thousands of code samples for this.
You may want to review the SDK for the Bio-Plugin, there may be a newer version available, and they probably have some code samples.
Did find a CodeProject article for this very SDK:
Fingerprint Reader Integration using the M2SYS SDK[^]
这篇关于从ASP转换为ASP.NET C#网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!