ASP.net inline code
Asked Answered
T

1

13

When is inline code executed with relation to page/control lifecycle events such as init and load?

Tymbal answered 21/9, 2009 at 4:42 Comment(1)
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
C
16

Inline code is executed when the page is being rendered ie. after the Page_PreRender event and before the Unload event

Combine answered 21/9, 2009 at 4:47 Comment(1)
+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.