title: Checking a Html Elements Class Attributes value contains "String"
body: <p>I have two user controls that need to add a class atribute to the body tag of my page, however they currently over write one another if I just use</p>
  
  <pre><code>Body.Attributes.Add("class","value")
  </code></pre>
  
  <p>So I need to check if the class attribute exsists and if it already contains the value Im going to add.</p>
  
  <pre><code>If Not Body.Attributes("class").Contains("value") Then
    Body.Attributes.add("class", Body.Attributes("class") + " " + "value")
  End If
  </code></pre>
  
  <p>Thanks for you time, any help gratefully received.</p>
  
  <p>EDIT:</p>
  
  <p>The contain constraint doesnt return the expected value, resulting the the class not been concatinated, 
  Example:
  add class "dog" then I a different instance of the same control tries to add "dog" but the contains("dog") returns false</p>