Can I automatically attach to the lifecycle of ANY server-enabled HTML tag?
Posted
by
Deane
on Stack Overflow
See other posts from Stack Overflow
or by Deane
Published on 2010-12-30T14:22:26Z
Indexed on
2010/12/30
14:54 UTC
Read the original article
Hit count: 208
If a "server-enabled" HTML tag is in a Web form, like this --
<p runat="server"/>
-- is there any way for me to attach to its rendering? I assume once they have runat="server", they must have a lifecycle of some kind.
I'd like to attach some code to the rendering of any HTML tag so enabled. So, whenever a template author puts runat="server" on a tag, I can catch the PreRender (or anything else) and execute some code.
Possible?
© Stack Overflow or respective owner