Which two actions should you perform?

You are creating an ASP.NET application by using the .NET Framework 3.5.

The application will use multiple master pages.

Each master page will have an Image control named ImageControl1. ImageControl1 will be added directly to some master pages and through a user control to the other master pages.

You need to ensure that the content pages of the application can dynamically reference the image displayed by ImageControl1.

Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

You are creating an ASP.NET application by using the .NET Framework 3.5.

The application will use multiple master pages.

Each master page will have an Image control named ImageControl1. ImageControl1 will be added directly to some master pages and through a user control to the other master pages.

You need to ensure that the content pages of the application can dynamically reference the image displayed by ImageControl1.

Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

A.
Code each master page class to implement a common interface that exposes the ImageUr1 property of the Image control.

B.
On each content page, use the @ MasterType directive to create a strongly typed master page reference.

C.
On each content page, call the Page.FindControlmethod to return a reference to ImageControl1.

D.
Code each master page class to use the Page_Prelnit method to assign the image displayed by ImageControl1.



Leave a Reply 0

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