Author: tiwas | Posted on: 9/30/2010 8:16:29 AM | Views : 349

Hi,
I have a simple test page with the following:
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="MELLOM 1 og 200" ValidationExpression="^.{1,20}$"/> <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Width="531px"></asp:TextBox>
As you probably see, I'm trying to validate if the field contains BETWEEN 1 and 200 "anythings". The problem is that it triggers correctly if there are more than 20 "anythings" in the text box, but not if there are zero :S
Anyone see what the problem might be?


Thanks!

...

Go to the complete details ...