Init event occurs in a Web page - ASP.NET Globalization and Localization

Q.  What happen in the Web Page when Init event occur?
- Published on 28 Jul 15

a. ViewState is loaded on the page.
b. Each child control of the page is initialized to its design time values.
c. HTML is rendered.
d. None of the above

ANSWER: Each child control of the page is initialized to its design time values.
 

    Discussion

  • Brijesh   -Posted on 19 Oct 15
    . When Init event occur in the web page then each child control of the page is initialized to its design time values. You can use this event to change initialization values for controls. In this event the controls on the web page are assigned unique ID by setting the UniqueID property and the themes are applied.
    protected void Page_Init(object sender, EventArgs e)
    {
    // Implementation here.
    }

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.)