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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -