if control A is listed in the aspx before control B, does that guarantee that control A's events will be processed before control B's?
that is, will control A' PreRender always occur before control B's?
thanks.
Printable View
if control A is listed in the aspx before control B, does that guarantee that control A's events will be processed before control B's?
that is, will control A' PreRender always occur before control B's?
thanks.
No.Quote:
Originally Posted by gamba
No.Quote:
Originally Posted by gamba
could you explain to me what the order or controls means, then?
why, for example, do ajax.net control require the script manager to be declared before every control that uses it?
The order of ASP.NET controls will be as ASP.NET pleases. It is according to the control treeview that gets generated for the page and in the viewstate.
ASP.NET AJAX, though, requires the scriptmanager before all else because the ScriptManager needs to write out JavaScript initialization values that are used by all other ASP.NET AJAX controls on the page. ASP.NET AJAX controls are not the same as ASP.NET controls. AJAX = client side.