I'm trying to check if a string exists in the html code but seems like the if statement cant find it, I also posted the html code to a text box (The line exists) but still can't figure this out!
HTML (The string i want to find)
HTML (The string i want to find)
Code:
<span class=head2 id="loggedInText" style="background-color:#FFFFFF;padding:0px">Du är inloggad som:</span></td>
Code:
Dim thepage As String = postreqreader.ReadToEnd
If thepage.Contains("Du är inloggad som") Then
Form1.Hide()
Form2.Show()
Else
MsgBox("Inloggningsuppgifterna stämmer inte!")
End If