<%
Dim xmlDoc;
Dim objNodeList;
Dim count;
set xmlDoc = Server.CreateObject("Msxml2.DOMDocument.6.0");
xmlDoc.validateOnParse = False;
xmlDoc.async = False;
xmlDoc.loadXML("<div>" & Request.Form("inTransContent") & "</div>");
Else
Set objNodeList = xmlDoc.documentElement.selectNodes("//text()");
count = objNodeList.length;
For i = 1 To count
objNodeList(i-1).insertData 0, "XYZ " ;
objNodeList(i-1).insertData objNodeList(i-1).length, " XYZ" ;
Next
Response.Write(xmlDoc.documentElement.xml);
End If
%>
嗨,我需要将此代码转换为
C#
,我对vbscript并不熟悉!谁能转换此代码!
谢谢
最佳答案
Look here!!!(一个SO问题,询问如何从托管对象调用本机例程)
And here!!!(用于在不同.NET语言之间进行转换的在线实用程序)
关于c# - 将经典ASP转换为ASP.NET C#,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5368468/