title: VB.net searching through HTML code
body: <p>I'm creating a program that will search through a pages HTML source code and returns if a specified string is present, though it always comes back false, could someone have a look incase I am missing something?</p>
  
  <pre><code>Private Const QUOTE As Char = """"c
  
  Private Sub ServerStatus_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  
      'download the page source and store it here
      Dim sourceString As String = New System.Net.WebClient().DownloadString("https://support.rockstargames.com/hc/en-us/articles/200426246")
  
      'call the source and validate a string exists, if not
      If (sourceString).Contains($"&lt;div class={QUOTE}panel-base xbl{QUOTE} style={QUOTE}background-color: RGB(236, 255, 236);{QUOTE}&gt;&lt;div class={QUOTE}marshmallowLogo{QUOTE} id={QUOTE}xboxLogo{QUOTE}&gt;Xbox 360&lt;/div&gt;&lt;center&gt;&lt;span class={QUOTE}statusSpan{QUOTE} style={QUOTE}color green;{QUOTE}&gt;Up&lt;/span&gt;&lt;/center&gt;") = True Then
          Label1.Text = "It's there"
          ' if it does
      ElseIf (sourceString).Contains($"&lt;div class={QUOTE}panel-base xbl{QUOTE} style={QUOTE}background-color: RGB(236, 255, 236);{QUOTE}&gt;&lt;div class={QUOTE}marshmallowLogo{QUOTE} id={QUOTE}xboxLogo{QUOTE}&gt;Xbox 360&lt;/div&gt;&lt;center&gt;&lt;span class={QUOTE}statusSpan{QUOTE} style={QUOTE}color green;{QUOTE}&gt;Up&lt;/span&gt;&lt;/center&gt;") = False Then
          Label1.Text = "It's not"
      End If
  
  End Sub
  </code></pre>
  
  <p>End Class</p>