By using LoadControl method. Is it on Page Load or on Page PreInit?
and why?
Join Stack Overflow to learn, share knowledge, and build your career.
By using LoadControl method. Is it on Page Load or on Page PreInit?
and why?
PreInit – This event represents the entry point of the page life cycle. If you need to change the Master page or theme programmatically, then this would be the event to do so. Dynamic controls are created in this event.