Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple ValidationSummary controls

Status
Not open for further replies.

Peppi

Programmer
Apr 9, 2001
205
CA
Hi,

I have two ValidationSummary controls on my page. One is for displaying a message relating to invalid dates, the other is for displaying a message with an invalid number entered.

The two summaries display fine on their own, but they override each other. Only one or the other validation summary will appear, but not both at the same time. It seems as though it forgets any previous failed validations. How can I have them both show at the same time if necessary?

Also, when validation occurs, my page jumps back to the top, although I have set age.MaintainScrollPositionOnPostBack to true.

Any ideas?

Thx.
 
Yes, the ValidationGroups have been set appropriately.
 
It must have something to do with client-side validation, because when I take out the clientsidevalidation function for one of the validators, both summaries appear.
 
I've found an alternate solution. I'm just going to eliminate the ValidationSummary controls and put the messages directly in my GridView. It seems to be working this way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top