Init event of a page - Each child control of the page is initialized to its design time values

Q.  What happens in the Init event of a page?
- Published on 16 Jun 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

  • Digvijay   -Posted on 23 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.)