all groups > asp.net webcontrols > november 2004 >
You're in the

asp.net webcontrols

group:

problem with validationsummary and custom controls


problem with validationsummary and custom controls killkennyhouse NO[at]SPAM hotmail.com
11/29/2004 7:04:08 AM
asp.net webcontrols: Hello, can some one help me with this problem?

I have a mainpage with validationsummary control. usercontrols are
loaded dynamically. I do validation in these usercontrols. Some of
them I use requiredvalidation others I use customvalidation.

Here is the problem. The error messages from my requiredvalidation
controls are loaded(or redisplayed from postback) properly. While the
customvalidation error messages are only shown in the
validationsummary control in the first time, but after the next
postback they no longer gets displayed. So I guess I need to run my
customvalidaiton everytime?

I really don't understand why they aren't persisted in the viewstate.
Does anyone know what the bestway for me to integrate the
Re: problem with validationsummary and custom controls Peter Blum
11/29/2004 5:25:36 PM
See my answer to your posting of this question on www.asp.net forums.

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

[quoted text, click to view]

AddThis Social Bookmark Button