Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27382

VS 2010 Can't find string in html code

$
0
0
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)
Code:

&nbsp;&nbsp;<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


Viewing all articles
Browse latest Browse all 27382

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>