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

Validation Controls within user control

P: n/a
I have a telephone number user control in which I need to validate the
data entered (Required field validation and regular expression
validation). The phone number is represented as 3 text boxes so I have
3 required field validation and regular expression validation controls.
I set the display property to none and have a validation summary
control in my hosting page. I have a method in the user control that
then assigns the error message and the validation group to these 6
controls. The problem I'm having is that if a user doesn't enter data
in any of the fields they get 3 duplicate error messages. Is there any
way to prevent duplicate messages from showing up in the validation
summary control???

Apr 13 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
3 controls, 3 validarors, 3 messages..... Thats whats going to show up. Why
do you think error message is duplicate?

<ti****@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
I have a telephone number user control in which I need to validate the
data entered (Required field validation and regular expression
validation). The phone number is represented as 3 text boxes so I have
3 required field validation and regular expression validation controls.
I set the display property to none and have a validation summary
control in my hosting page. I have a method in the user control that
then assigns the error message and the validation group to these 6
controls. The problem I'm having is that if a user doesn't enter data
in any of the fields they get 3 duplicate error messages. Is there any
way to prevent duplicate messages from showing up in the validation
summary control???

Apr 13 '06 #2

P: n/a
I realize that if there are 3 validation controls then three messages
are going to show up; at least by default. I was essentially asking if
there is a way around this.

I think the messages are duplicated because they are duplicated. I
understand why they are duplicate; I was just trying to see if there is
an easy way around this.

Apr 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.