简体   繁体   中英

How can I set the order in which controls get created?

It seems that the order in which controls are declared in the .aspx does not guarantee the order in which they get rendered/loaded/created.

Is it possible to set the order in which controls are 'rendered' ? Some of my control events have side effects, that is why... (In my case I have two DetailsView controls, and I need to be sure the ItemCreated of one always gets called before the other one's).

Maybe there is just a way to 'wait' in an event until another one is triggered ?

实际上,这仅是按所需顺序分别在控件上调用DataBind的问题,而不是默认使用Page.DataBind

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM