Regular expression for Asp.net text box conrol
Posted on 2010-11-22
I have a text box control and I need to restrict the text box input to no more than 255 characters. I created
a regular expression, however it is not correct. Can someone help me out? Here is my validation expression:
My actual Asp.net code looks something like, this but I know that the regular expression is not correct.
<ASP:RegularExpressionValidator id="regValInstructions" runat="server"
controltovalidate="txtMessage" textmode="multiline" tabindex="43"></ASP:TextBox>