Which page event should be utilized?

You work as a Web developer for ABC.com. You need to implement a page event that fires before
the page is initialized.
Which page event should be utilized?

You work as a Web developer for ABC.com. You need to implement a page event that fires before
the page is initialized.
Which page event should be utilized?

A.
The PreLoad event would be raised.

B.
The OnLoad event would be raised.

C.
The PreInit event would be raised.

D.
The UnLoad event would be raised.

Explanation:
Developers and writers should note that the Page.PreInit event is used to check the
IsPostBack property deciding if it is the first time the page is processed and creates or re-creates
dynamic controls before setting master page dynamically.



Leave a Reply 0

Your email address will not be published. Required fields are marked *