How to set Maximum Character Length of Multiline TextboxRv Singh12yAsked Jan 21, 2014, 5:46 AM2.4k.NETHow to set Maximum Character Length of Multiline Textbox using RegularExpression in ASP.Net
SSSanthosh Subramaniam12y agoPosted Jan 21, 2014, 6:12 AMAccepted answerHi Singtry thisrunat="server" ControlToValidate="txtAgendaDesc" ErrorMessage="Please enter maximum 1500 charachters." Text="*" Display="None" ValidationExpression="^[\s\S]{0,1500}$" ValidationGroup="AddAgenda">
Satyapriya Nayak12y agoPosted Jan 21, 2014, 6:13 AMhttp://aspsnippets.com/Articles/TextBox-Minimum-and-Maximum-Character-Length-Validation-using-ASPNet-RegularExpression-Validators.aspx
Santhosh SubramaniamPosted Jan 21, 2014, 6:12 AM
try this
ErrorMessage="Please enter maximum 1500 charachters."
Text="*" Display="None" ValidationExpression="^[\s\S]{0,1500}$" ValidationGroup="AddAgenda">
Rv SinghPosted Jan 21, 2014, 6:50 AM
Satyapriya NayakPosted Jan 21, 2014, 6:13 AM