I\'m trying to use asp:
I want a way to spe
Use a regular expression validator instead. This will work on the client side using JavaScript, but also when JavaScript is disabled (as the length check will be performed on the server as well).
The following example checks that the entered value is between 0 and 100 characters long:
*
There are of course more complex regexs you can use to better suit your purposes.