F
Frankie
I have a user control into which I insert a bunch of controls dynamically. I
have it all working just fine - Everything is there on Postback, etc.
I load this user control into a hosting ASPX page at runtime during the
Page_Load event procedure of the hosting ASPX page.
Question: Would it be better to load the user control from the hosting
page's OnInit event rather than Page_Load? Does it matter or not?
I ask because I understand that for dynamic controls to be properly
inserted - it must be done during the OnInit event - which is happening -
but only in the ASCX lifecycle (which gets kicked off from the hosting aspx
page_load).
Thanks.
have it all working just fine - Everything is there on Postback, etc.
I load this user control into a hosting ASPX page at runtime during the
Page_Load event procedure of the hosting ASPX page.
Question: Would it be better to load the user control from the hosting
page's OnInit event rather than Page_Load? Does it matter or not?
I ask because I understand that for dynamic controls to be properly
inserted - it must be done during the OnInit event - which is happening -
but only in the ASCX lifecycle (which gets kicked off from the hosting aspx
page_load).
Thanks.