469,578 Members | 1,914 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

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 6081
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Christer | last post: by
2 posts views Thread by Sunil Sabir | last post: by
3 posts views Thread by Mike | last post: by
5 posts views Thread by john.livermore | last post: by
1 post views Thread by Ken Varn | last post: by
reply views Thread by =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.