ASP Classic VBScript to ASP.NET C# Conversion -
i familiar asp.net, not visual basic.
here visual basic code:
myxml="http://api.ipinfodb.com/v3/ip-city/?key="&api_key&"&ip=" &useripaddress&"&format=xml" set xml = server.createobject("msxml2.domdocument.6.0") xml.async = "false" xml.resolveexternals = "false" xml.setproperty "serverhttprequest", true xml.load(myxml) response.write "<p><strong>first result</strong><br />" i=0 10 response.write xml.documentelement.childnodes(i).nodename & " : " response.write xml.documentelement.childnodes(i).text & "<br/>" next response.write "</p>"
what going on in code?
how can convert asp.net (c#)?
from looks of visual basic code, think should create 2 methods "convert" asp.net c# web page:
loadxmldata method - use
xmldocument
load url viaxmldocument
'sload
function. read asp.net load xml file url example.builddisplay method - use asp.net
placeholder
orpanel
create container inject paragraph tag , individual results into.
Comments
Post a Comment