PreInit event is written if user wants to create controls at runtime - ASP.NET HTML and Web Server Control

Q.  If a user wants to create controls at runtime which event should be used to write code?
- Published on 27 Jul 15

a. PreLoad
b. Load
c. Init
d. PreInit

ANSWER: PreInit
 

    Discussion

  • Ramesh   -Posted on 19 Oct 15
    Preinit event will be used if you want to create controls at runtimes.
    . The other functionality of this event is as follows
    • You can set the values of profile properties.
    • You can dynamically set a master page.
    • you can set the page’s Theme property

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)