How ValidationSummary works

M

marc

I am having trouble with the ValidationSummary not getting all of the error
messages from the validators on my page. Can anyone tell me how the
ValidationSummary control works behind the scenes? I would like to know how
it gathers the error messages so I can troubleshoot this.

Thanks
 
T

Teemu Keiski

Hi,

it goes through Page.Validators collection at Render phase gathering the
error messages of all failed validators. Note that its MessageBox (alert
window) functionality works only when client-side validation is supported
(if validator works only at server-side and fails, it won't raise
client-side alert on that case)

What type of problem you have? Post some sample to demonstrate.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist


I am having trouble with the ValidationSummary not getting all of the error
messages from the validators on my page. Can anyone tell me how the
ValidationSummary control works behind the scenes? I would like to know how
it gathers the error messages so I can troubleshoot this.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,076
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top