title: Check a textbox for some certain text asp.net c#
body: <p>How do I check if a textbox contains "@mediacollege.dk" in like this</p>
  
  <pre><code>if (email.text == "here it checks if it contains "@mediacollege.dk" and does a command")
  {
      DHF_LodderTableAdapter DHFLodder = new DHF_LodderTableAdapter();
      DHFLodder.Insert(UserName.Text, 10);
  }
  else
  {
      // nothing
  }
  </code></pre>