I am having problems converting the following from Vb.net to C#. Any help would be very much appreciated.
Dim address As String = http://someAddress
Dim client As WebClient = New WebClient() Dim uri As Uri = New Uri(address)
client.DownloadStringAsync(uri)
If e.Cancelled = False AndAlso e.Error Is Nothing Then
Dim textString As String = CStr(e.Result)
Dim doc As New HtmlDocument
doc.LoadHtml(textString)
Try
'divresults.InnerHtml = String.Empty
For Each div As HtmlNode In doc.DocumentNode.SelectNodes("//div[contains(@class, 'sometext')]")
For Each table As HtmlNode In div.SelectNodes("//table")
'divresults.InnerHtml += String.Format("Table ID : {0}<br/>", table.Id)
For Each row As H ...
Go to the complete details ...