validators order

I

imbirek8

Hi,

In the asp page, I have collection of validators in my page: Page.Validators

I would like to know how framework generate this collection.
It is important for me to know, how order of validators in this collection
is generated ?
Is it alfabetic order of validator id or what ? I can't find the key.

Thanks for help
 
B

bruce barker

there is no defined order. currently this is an arraylist, that a
validator adds itself to when its oninit method is called. the oninit
will be called when the parent control adds it to its control
collection, which is generally when EnsureChildControls() is called, but
can be as late as Render (for composite controls).

so if you know the order of the controls on the form, the order of the
databinds, and when in the control cycle the validator is created, then
you can predict the the order.


-- bruce (sqlwork.com)
 

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
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top