473,385 Members | 1,707 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,385 software developers and data experts.

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 3901
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 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...
1
by: 0582 | last post by:
Dear All, would you know how to create mutiple required field validator (Eg. 2 TextBoxes), and when a submit button is clicked with fields are empty, the error messages for the 2 TextBoxes will...
0
by: Jeff Tolman | last post by:
Hi! I keep getting this error, but I'm not sure why. When I turn off the trace flag, I only get it at certain times. Even with the trace flag set to true, I don't understand the output...
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: Jonas | last post by:
Hi! I have aspx-page where I use multiple panels to make room for more controls than would otherwise fit onto one page. On submit, the controls on all panels, visible or not, should be validated...
2
by: c676228 | last post by:
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...
0
by: MattB | last post by:
I have a (asp.net 1.1) page that loads a bunch of user controls based on some database data. The User Controls have input controls and associated validators on them, and I wanted to place a...
2
by: timj | last post by:
Anyone suggestions how to cleanly realize a page with multiple validationsummaries that display only the messages of controls that belong to the same validationgroup? So for example three...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.