Professional Documents
Culture Documents
Pre-Assessment Questions: Globalization and Optimization
Pre-Assessment Questions: Globalization and Optimization
Pre-Assessment Questions
1. Which of the following is not a client-side option?
a. Query strings
b. Hidden Fields
c. View state property
d. Session state
3. Which of the following actions does the built-in session state feature not
automatically perform?
a. Store session-specific data on the server for use across multiple
browser requests.
b. Stores the information in the application state in a key-value pair and
maintains data consistency between server round trips and between
pages.
c. Raise session lifetime-related events, such as Session_OnStart and
Session_OnEnd, which can be handled using application code.
d. Automatically release session data if a browser does not access an
application within a specified timeout period.
Solutions to Pre–Assessment
Questions
1. d. Session state
2. a. ViewState
3. b. Stores the information in the application state in a key-value pair and
maintains data consistency between server round trips and between pages.
4. b. Session state variables are stored in memory until they are either
removed or replaced.
5. b. Every page in an application should have a style sheet attached to it.
Objectives
In this lesson, you will learn to:
• Implement Globalization
• Optimize Web applications
• Implement caching
• Use resource files
• Develop a Locale-Aware application
Globalization in ASP.NET
Summary
In this lesson, you learned:
Summary (Contd.)
• The System.Gloablization namespace provides different classes that
enable you to determine locale-specific information, such as the language
and the country of an application at run time. In ASP.NET, the DataGrid
control is used to display XML data in a grid.
• The CultureInfo class is in the System.Globalization namespace that
identifies the locale by a culture.
• Some of the commonly used methods of the CultureInfo class are:
• GetCultures
• GetFormat
• Encoding is the schema for representing character in a numeric format. The
characters from different languages are grouped into a set called the
character set. There are two very commonly used character sets, American
National Standard Institute (ANSI) and Unicode.
Summary (Contd.)
• Mirroring is the transformation of coordinates for the languages that are read
from the right to the left.
• A language that does not follow the Latin script is called a nonlatin language.
• A resource is any nonexecutable data that is logically deployed with an
application.
• Optimization is to improve the performance of a Web application.
• The entire optimization process is divided into three levels:
• System-level optimization
• Application-level optimization
• Modular-level optimization
• Caching is a a technique for optimizing a Web application.
Summary (Contd.)
• ASP.NET supports three types of caching based on the unique concept of
storing data or a part of data for later use to enhance the performance of a
Web application:
• Output Caching: Enables you to cache the entire page so that the page
does not require to be created again for every request.
• Fragment Caching: Used in situations where the Web page contains
dynamic data. It allows you to cache only certain portions of a Web
page. These are the portions that remain static most of the time.
• Data Caching: Used to access frequently used data that is cached in the
server-side memory variables.