I need help with .net c# screen scrape. I can't seem to find an example in c# that works. I have this one in VB that wors but feel like an idiot bc I can't convert it correctly...
<%@ Import Namespace="System.Net" %> <script language="VB" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
'STEP 1: Create a WebClient instance
Dim objWebClient as New WebClient()
'STEP 2: Call the DownloadedData method
' Const strURL as String = "http://www.aspmessageboard.com/"
Const strURL as String = "http://www.expedia.com/Hotel-Search?#&destination=Helen, Georgia, United States of America&startDate=04/27/2015&endDate=04/30/2015®ionId=6057994&adults=2"
' Const strURL as String = "http://www.grouphousingadmin.com"
Dim aRequestedHTML() as Byte
aRequestedHTML = objWebClient.DownloadData(strURL)
'STEP 3: Convert the Byte array into a String
Dim objUTF8 as New UTF8Encoding()
Dim strRequestedHTML as String
strRequestedHTML = objUTF8.GetString(aRequestedHTML)
'WE'RE DONE! - display the string
lblHTMLOutput.Text = strRequestedHTML
End Sub
</script> <html> <body> <h1>Screen Scrape of www.aspmessageboard.com</h1> <p> <asp:label id="lblHTMLOutput" runat="server" />