title: Asp.net regex validator does not work
body: <p>My textbox should contain 8 digits. If not i want to pop up an alert box. But the regualr expression validator does not trigger. Why?</p>
  
  <pre><code>&lt;asp:LinkButton ID="LinkPayment" CssClass="btn mainBtn" runat="server" onclick="LinkPayment_Click" OnClientClick="_gaq.push(['_trackPageview', '/virtualgoal/smspayment']);"&gt;Betal &gt;&lt;/asp:LinkButton&gt;  
  
  &lt;asp:RequiredFieldValidator ID="RequiredCustomersPhone" Display="None" ValidationGroup="ValGroupCustomersPhone" ControlToValidate="CustomersPhone" runat="server" ErrorMessage="Du må fylle inn ditt mobilnummer!"&gt;&lt;/asp:RequiredFieldValidator&gt;   
  
  &lt;asp:RegularExpressionValidator ID="RegExValCustomersPhone" ValidationGroup="ValGroupCustomersPhone" runat="server" ControlToValidate="CustomersPhone" Display="None" ErrorMessage="Telefonnummer må bestå av 8 siffer!" ValidationExpression="[0-9]{8}"&gt;&lt;/asp:RegularExpressionValidator&gt;
  
  &lt;asp:ValidationSummary ID="ValidationSummary" ShowSummary="False" ValidationGroup="ValGroupCustomersPhone" ShowMessageBox="True" runat="server" /&gt; 
  </code></pre>