validators order

  • Thread starter Thread starter imbirek8
  • Start date Start date
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
 
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)
 
Back
Top