473,327 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Validation Controls within user control

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
2 2407
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: nzanella | last post by:
Hello, I have an ASP.NET HTML form control with multiple HTML input button controls each of which has an associated HTML input control. For each HTML input control I have a validator that...
2
by: buran | last post by:
Dear ASP.NET Programmers, I have a web user control (a search menu) which has 2 validation controls (one for input and another for the search criterion). I am including this search user control...
2
by: Barbara Alderton | last post by:
I setup some standard Required Field Validation controls and one Custom validation control on an ASP.NET page (within a user control) to validate text entry. I also setup a Summary Control to post...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
2
by: Martin | last post by:
Hi, I have a page with 4 web user controls on. Each of these web user controls has some asp.net controls on that have validation events attached to them. Now because there are 4 seperate...
3
by: ilockett | last post by:
The background: I have a web app with a simple master page that contains just one content placeholder. I have created a web form that then uses this master page. Within the content...
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
3
by: J055 | last post by:
Hi I've been puzzling over this one for a while now. I'm not really sure what the best and cleanest approach would be here. This is what I want to do. A User enters some values in a FormView...
2
by: msch.prv | last post by:
Is there a specific method to disable field validators in a user control.from within a parent page or does it require an ad hoc approach? The page attribute ValidateRequest does not seem to be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.