Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reg Expression

Status
Not open for further replies.

LauraCairns

Programmer
Jul 26, 2004
173
GB
I was wondering if anyone knew how to write a regular expression which validated that a field was 200 or less characters long.
Its this part i'm interested in working out. Can someone help me please.

ValidationExpression="^{0,200}$"

<asp:regularexpressionvalidator id="Regularexpressionvalidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="Outcomes cannot be more than 200 characters long" ValidationExpression="^{0,200}$">*</asp:regularexpressionvalidator>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top