asp.net - Why is it possible to set the properties of server controls as early as in the Page_PreInit handler? -
an aspx page's page_preinit event happens before component server control's (e.g. textbox) init event. possible set textbox's text property in page_preinit. suppose means textbox's text set before textbox initiated. how possible?
i suppose need tell why want it, scenerio in wish use since @ least never used textbox's text property in preinit. may put text box page , in codebehind may write:
protected sub page_preinit(byval sender object, byval e system.eventargs) handles me.preinit textbox1.text = "test" end sub
Comments
Post a Comment