Look at validators.
RegularExpressionValidator
http://msdn.microsoft.com/en-us/library/eahwtc9e.aspx
> Hi all,
> how can I check that a user input only 2 letters (not numbers) in a
> textbox?
> (ASP.NET 2.0 - C#)
>
> Thanks in adavance.
Luigi - 27 May 2008 13:31 GMT
> Look at validators.
>
> RegularExpressionValidator
> http://msdn.microsoft.com/en-us/library/eahwtc9e.aspx
Thanks, maybe an expression like this one would be fine:
[a-zA-Z]{2}
Luigi