Im new to VB.Net and am having some trouble with converting programs from ASP
<%@ Language=VBScript %>
<%@ Import Namespace="System.Net"%>
<%@ Import Namespace="System.IO"%>
<%@ Import Namespace="System.Xml"%>
<Script runat="server">
Function GetWebPageAsStringShort2(strURI)
With WebRequest.Create(New URI(strURI)).GetResponse()
With New StreamReader(.GetResponseStream())
GetWebPageAsStringShort2 = .ReadToEnd()
End With
End With
End Function
Dim sXML as String = GetWebPageAsStringShort2("http://slashdot.org/slashdot.xml")
Dim doc As XmlDocument = New XmlDocument()
</Script>
That is as far as I have gotten. The trouble seems to be that I cannot seem to figure out how to remotely get XML data so i can transform it server-side with an XSL document. Any help would be appreciated.
<%@ Language=VBScript %>
<%@ Import Namespace="System.Net"%>
<%@ Import Namespace="System.IO"%>
<%@ Import Namespace="System.Xml"%>
<Script runat="server">
Function GetWebPageAsStringShort2(strURI)
With WebRequest.Create(New URI(strURI)).GetResponse()
With New StreamReader(.GetResponseStream())
GetWebPageAsStringShort2 = .ReadToEnd()
End With
End With
End Function
Dim sXML as String = GetWebPageAsStringShort2("http://slashdot.org/slashdot.xml")
Dim doc As XmlDocument = New XmlDocument()
</Script>
That is as far as I have gotten. The trouble seems to be that I cannot seem to figure out how to remotely get XML data so i can transform it server-side with an XSL document. Any help would be appreciated.