469,608 Members | 1,641 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Multiple ValidationSummary controls.

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 want to display a Message Box for the
validation message on my Validation controls. My validation control is
embedded within a custom server control. If my custom server control adds a
ValidationSummary control, I am afraid that it may conflict with an existing
ValidationSummary control if one exists on the page where the custom server
control is placed.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
Nov 19 '05 #1
1 3658
By design, the ValidationSummary control collects ALL validator error
messages on the page.

My replacement to the ASP.NET validators, Professional Validation And More
(http://www.peterblum.com/vam/home.aspx), provides a technique called
Validation Groups. It lets you assign a group name to the submit button and
the validators it fires. You can have multiple ValidationSummary controls on
the page, each with its own Validation Group.

If you are only trying to avoid having two validationsummaries on the page,
you can have your UserControl check the parent control for the
ValidationSummary and then set its own to Visible=false.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Ken Varn" <nospam> wrote in message
news:eh**************@TK2MSFTNGP15.phx.gbl...
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 want to display a Message Box for
the
validation message on my Validation controls. My validation control is
embedded within a custom server control. If my custom server control adds
a
ValidationSummary control, I am afraid that it may conflict with an
existing
ValidationSummary control if one exists on the page where the custom
server
control is placed.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by 0582 | last post: by
3 posts views Thread by Christer | last post: by
2 posts views Thread by Sunil Sabir | last post: by
3 posts views Thread by Jonas | last post: by
reply views Thread by Solution2021 | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.