By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,011 Members | 2,967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,011 IT Pros & Developers. It's quick & easy.

highlighting textboxes

P: n/a
hello,

i have a 14 textboxes and 14 requiredfieldvalidator controls to validate the
textboxes. if one or more of the textboxes is empty, the corresponding
requiredfieldvalidator controls show error messages. if all are empty, then
14 error messages show up which takes up a lot of real estate.

as a better alternative, i would like to show only 1 generalized error
message "Pls. fill the highlighted textboxes." and just highlight the empty
textboxes. how do i do this and thanks in advance.
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Newbie wrote:
hello,

i have a 14 textboxes and 14 requiredfieldvalidator controls to validate the
textboxes. if one or more of the textboxes is empty, the corresponding
requiredfieldvalidator controls show error messages. if all are empty, then
14 error messages show up which takes up a lot of real estate.

as a better alternative, i would like to show only 1 generalized error
message "Pls. fill the highlighted textboxes." and just highlight the empty
textboxes. how do i do this and thanks in advance.


1. You can have a custom validator
or
2. You can change the Display property of the validators to "None" and
add 1 validation summary.
As a result, all the validators will not be visible but the validation
summary.

I hope this helps

--

SevDer
http://www.sevder.com
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.