PrepAway - Latest Free Exam Questions & Answers

What should you do?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

The application uses 10 themes and allows the users to select their themes for the Web page.

When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer.

The application runs on different storage types and in different environments.

You need to store the themes that are selected by the users and retrieve the required theme.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Use the Application object to store the name of the theme that is selected by the
user. Retrieve the required theme name from the Application object each time the user
visits a page.

B.
Use the Session object to store the name of the theme that is selected by the user.
Retrieve the required theme name from the Session object each time the user visits a
page.

C.
Use the Response.Cookies collection to store the name of the theme that is selected
by the user. Use the Request.Cookies collection to identify the theme that was selected
by the user each time the user visits a page.

D.
Add a setting for the theme to the profile section of the Web.config file of the
application. Use the Profile.Theme string theme to store the name of the theme that is
selected by the user. Retrieve the required theme name each time the user visits a page.


Leave a Reply