title: Mask Textbox view for a phone number
body: <p>i am trying to format a text box so that when the users can type in a phone number and it would automatically put it in the following format :(999)999-9999</p>
  
  <p>i tried using the MaskedEditExtender, it works but it does the complete opposite of what i need.</p>
  
  <p>when i click on the field it shows the correct format, but once i mouse out it still only shows 9999999999</p>
  
  <p>how can i do it so that the user ONLY types in numbers and it puts dashes and parentheses where it's supposed to automatically(which it does now), but keep the format when i click out of it.</p>
  
  <pre><code>&lt;asp:TextBox ID="txtSuperPhone" runat="server" CssClass="myinputstyle"  /&gt;
      &lt;asp:MaskedEditExtender ID="mskSuperPhone" runat="server" TargetControlID="txtSuperPhone" Mask="(999)999-9999"/&gt;
  </code></pre>