<asp:TextBox ID="tb" runat="server" TextMode="MultiLine" ></asp:TextBox> //Regular Expression validator <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tb" ErrorMessage="Please enter maximum 100 charachters." SetFocusOnError="true" ValidationExpression="^[a-zA-Z.]{0,100}$"> </asp:RegularExpressionValidator>
ValidationExpression="(.{0,100})"
ValidationExpression="^(.{0,100})$"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)