When is inline code executed with relation to page/control lifecycle events such as init and load?
ASP.net inline code
Inline code meaning anything between <% %> and <%= %>, but not <%# %> - data-binding expressions are executed when a control template is data-bound, which can happen at any stage prior to rendering. –
Fungicide
Inline code is executed when the page is being rendered ie. after the Page_PreRender event and before the Unload event
+1 - Just in case anyone wants a reference: msdn.microsoft.com/en-us/library/ms178135.aspx embedded code blocks run in the render phase (admittedly taken from another SO answer: #15210000) –
Cowhide
© 2022 - 2024 — McMap. All rights reserved.