When using the HtmlAgilityPack my code is erroring out the minute it hits a snag before i can implement any type of check, for example:
Dim doc = New HtmlDocument()
doc.LoadHtml(sl)
Dim searchId = doc.DocumentNode.SelectSingleNode("//input[@name='searchId']").Attributes("value").Value
When it hit's this line (after working fine)
Dim searchId = doc.DocumentNode.SelectSingleNode("//input[@name='searchId']").Attributes("value").Value
I get the object not set to a reference, i know it's because it doesn't see this value in the html code, i'm not sure the best way to check it isn't empty so i can continue the execution otherwise the application crashes.
Can anyone help?