What should you do?

You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to implement control caching to improve the loading time of a control. It is not required to refresh the content of the control after the application loads. The application will be compiled by using the .NET 4 client profile. You need to ensure that the following requirements are met:
* The control is reusable in multiple forms.
* Data in the control is cached when the application is loaded.
What should you do?

You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to implement control caching to improve the loading time of a control. It is not required to refresh the content of the control after the application loads. The application will be compiled by using the .NET 4 client profile. You need to ensure that the following requirements are met:
* The control is reusable in multiple forms.
* Data in the control is cached when the application is loaded.
What should you do?

A.
In the Load event of the application window, add code to load the control. Save the control to an instance variable.

B.
In the Load event of the application window, add code to load the control. Save the control to the cache by using objects in the System.Web.Caching namespace.

C.
In the constructor of the application window, add code to load the control. Save the control to a static variable.

D.
In the constructor of the application window, add code to load the control. Save the control to the cache by using objects in the System.Web.Caching namespace.



Leave a Reply 0

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