ah ok. i was close!
Problem I'm seeing is that my variable DOES hold valid html (an entire page's worth), but when I set the DocumentText equal to it, it strips everything out and leaves only "<HTML></HTML>" so any future calls to it generate a Null Reference Exception..
Here's my code:
vb Code:
Try
'updates will hold the HTML Source code (verified working)
updates = getUpdates(classURL)
'Now scrape it
Dim wb As New WebBrowser
With wb
.DocumentText = updates
.ScriptErrorsSuppressed = True
End With
MsgBox(wb.DocumentText)
Dim doc As HtmlDocument = wb.Document
Dim element = doc.GetElementById("forumLabel" & txtClassID.Text).InnerText
If element IsNot Nothing Then
MsgBox(element)
End If
Catch ex As Exception
MsgBox("Appears something failed: " & ex.ToString)
End Try