What should you do to dynamically set the master page when a user views pages in the application?

You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?

You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?

A.
Set Page.MasterPageFile in the Page’s Page_Init event.

B.
Set Page.MasterPageFile in the Page’s OnInit event.

C.
Set Page.MasterPageFile in the Page’s Page_Load event.

D.
Set Page.MasterPageFile in the Page’s Page_PreInit event.



Leave a Reply 0

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