title: How to prevent ’ character being entered into a textbox?
body: <p>I am trying to prevent the <code>’</code> character from being entered into a textbox. 
  The problem is if you copy and paste the <code>’</code> character it becomes a right single quotation, which causes an error in the sql when trying to save the textbox to the database. </p>
  
  <p>You can see this here in the
  <a href="http://unicodelookup.com/#%E2%80%99/1" rel="nofollow">unicode lookup</a></p>
  
  <p>If you manually enter in <code>'</code> then it is an apostrophe and this character is accepted. </p>
  
  <p>The problem is people are copying and pasting this character from emails into the textbox and it gets converted to the single right quote. </p>
  
  <pre><code>Regex regex = new Regex(@"^[a-zA-Z0-9]*$");
  Match match = regex.Match(txtName.Text);
  if (!match.Success)
  {
       DisplayMsg("Name contains invalid character");
  }
  </code></pre>
  
  <p>Is there a way to still allow the user to enter an apostrophe but prevent the single right quotation? </p>