Известный Болтун
Зарегистрирован: 21 April 2006
Сообщения: 596
Примеры кода: 0
|
Глюк RegularExpressionValidator ? |
04 August 2008 04:32 |
|
|
|
|
admin_vlad:
Делаю проверку на ввод email. Если нажата кнопка "Next" а в поле ввода ничего нет, то RegularExpressionValidator1 считает что условие выполнено.
Почему так?
*Необходимо ввести email
Документацию внимательнее читать надо.
The RegularExpressionValidator does not perform validation on an empty string. If the string you are testing might be empty, use the RequiredFieldValidator as well as the RegularExpressionValidator.
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ~Martin Fowler
Данное сообщение получено с сайта GotDotNet.RU
Последний раз редактировалось 04 August 2008 04:31
|
|