title: regular expression validation in asp.net
body: <p>i am using Regular expression validator c# in asp.net for a login page..i have different login pages for student,lecturer and admin..the login ids are of the form 1RNxxCSxxx,1RNLECSxxx,1RNADCSxxx respectively(x-digits) my problem is it validates the text box and displays the error message.. but it still continues n logs in..my code is..</p>
  
  <pre><code>    &lt;asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"       ControlToValidate="TextBox1" ErrorMessage="Enter in 1RNxxCSxxx format" ValidationExpression="[1][R][N][0-9][0-9][C][S][0-9][0-9][0-9]"&gt;&lt;/asp:RegularExpressionValidator&gt;
  </code></pre>
  
  <p>ie..if i type lecturer id in student login page i can still login inspite of gettin error message..any help would be appreciated.thank u</p>