emma oj

emma oj

  • 1.4k
  • 193
  • 22.1k

Convert from ASP to ASP.NET C# website

Jun 29 2018 2:59 PM
I need to convert these 2 pages to asp.net c# website

1.Delete.asp
<html>
<head>
<link rel=stylesheet href="i/theme-default/style.css" type="text/css">
<link rel=stylesheet href="i/font-middle.css" type="text/css">
<title>Delete fingerprint</title>
</head>

<!-- 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">
</OBJECT>

<form name="form_enroll" action="process-delete.asp" method=post style="WIDTH: 250px">
<h1>Delete Fingerprint</h1>

<table>
<tr><td>Registration ID<td><input name="ID" id="nick"><input type="hidden" name="biodata"></td>

</table>

<input type=submit value=" Delete " class="submit" name=submit_cmd >
</td></tr>
</form>
</center>
</body>
</html>

 

2.) process-delete.asp
<html>
<head>
<link rel=stylesheet href="i/theme-default/style.css" type="text/css">
<link rel=stylesheet href="i/font-middle.css" type="text/css">
<title>Process-Delete</title>
</head>
<%
'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("<h2>Web Service Call Failed!</h2>")
else
dim xml
xml = objSOAPClient.DeleteID(Request.Form("ID"))

'Display

Response.Write "Code: " & xml & "<BR>"

Response.Write("<a href=Delete.asp>Go Back</a>")

end if
%>
</html>
 
 
Thanks

Answers (1)