473,327 Members | 2,007 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.

Use validationSummary to display error message in user control

Hi,
I have several user controls like email, phone,ssn etc. each has it's own
validation message in its user control already.
When I bring all those user controls in an aspx page, I would like to
display a summary error messages using validation summary in an aspx page,
how to do that?
Thank you.
--
Betty
Jan 13 '06 #1
2 6245
I am sorry, I didn't make that clear enough. What I mean to ask is if in a
user control, I just used "*" as a default error message,which just to mark
the field need to be corrected, but in a summary error message, I would like
to give more detailed error message, is it dorable?
--
Betty
"c676228" wrote:
Hi,
I have several user controls like email, phone,ssn etc. each has it's own
validation message in its user control already.
When I bring all those user controls in an aspx page, I would like to
display a summary error messages using validation summary in an aspx page,
how to do that?
Thank you.
--
Betty

Jan 13 '06 #2
http://msdn.microsoft.com/library/de...ssagetopic.asp
A quote from the above link:

"Use the ErrorMessage property to specify the text to display in the
validation control when validation fails. This text is also included in the
ValidationSummary control, if one is placed on the Web page.

It is possible to display different text for the validation control and the
ValidationSummary control. Use the Text property to specify the text to
display in the validation control.

Note If the Text property is set, that text will override the text
specified in the ErrorMessage property and appear in the validation control.
However, the text specified by the ErrorMessage property always appears in
the ValidationSummary control."

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"c676228" wrote:
I am sorry, I didn't make that clear enough. What I mean to ask is if in a
user control, I just used "*" as a default error message,which just to mark
the field need to be corrected, but in a summary error message, I would like
to give more detailed error message, is it dorable?
--
Betty
"c676228" wrote:
Hi,
I have several user controls like email, phone,ssn etc. each has it's own
validation message in its user control already.
When I bring all those user controls in an aspx page, I would like to
display a summary error messages using validation summary in an aspx page,
how to do that?
Thank you.
--
Betty

Jan 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: newusertodotnet | last post by:
I'm trying to add a ValidationSummary control to a common base page used by all of our system's aspx/ascx files. The base page is a regular class file that inherits from System.Web.UI.Page. When I...
3
by: Christer | last post by:
Hi all! I recently created a MessageBox webcontrol for asp.net. This can be used as is, but I also want to take ude of it in other webcontrols. Right now i creating a ValidationSummary control,...
2
by: Sunil Sabir | last post by:
Dear All, I am using ValidationSummary,RequiredField Validator and Regular Expression Validator in my ASP.net form. I want to display error messages only in the ValidationSummary Control. But...
3
by: Mike | last post by:
Is there a way to reference the value of a validationsummary control? I have a need to display any validation errors on my pages in a unique way and the normal output of the validationsummary...
1
by: Dan Sikorsky | last post by:
I'm using SmartNavigation and need to automatically scroll to the top of the page when the ValidationSummary control catches errors and displays them, so that the user can see the errors without...
5
by: john.livermore | last post by:
I am successfully using the client side validation controls, but there are a couple aspects of their behavior that I wish to modify. I cannot see how to accomplish this through the properties, but...
1
by: Ken Varn | last post by:
If a page has multiple ValidationSummary controls, how does it distinguish which ValidationControls are associated with which ValidationSummary controls? The reason I am asking this is that I...
2
by: PeterKellner | last post by:
I'm wanting to just show the error in a ValidationSummary control, not next to the actual TextField I'm putting a RequiredFieldValidator next to. I don't even want the little "*" showing which...
0
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi Is it possible to get the ValidationSummary control to display its errors on the client side i.e. before a submit of the form has happened? My problem is that my ValidationSummary displays...
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.