Pre-Assessment Questions: State Management and Accessibility
Pre-Assessment Questions: State Management and Accessibility
Pre-Assessment Questions
1. Errors in _____________ file causes configuration errors.
a. Web.config
b. AssemblyInfo.cs
c. Global.asax
d. WebForm1.aspx
3. Which one of the following files include the Application Error event?
a. Web.config
b. AssemblyInfo.cs
c. Global.asax
d. WebForm1.aspx
Solutions to Pre–Assessment
Questions
1. a. Web.config
2. a. Configuration error
3. c. Global.asax
4. b. Web.config
5. a. Source
Objectives
In this lesson, you will learn to:
• Implement state management using client side options
• Implement state management using server side options
• Implement accessibility in ASP.NET application
• Identify accessibility design guidelines for the Web
• Solution
1. Create an ASP.NET Web application.
2. Design a WelcomePage form.
3. Add the Functionality to the WelcomePage Form.
4. Run the program.
5. Perform accessibility testing.
Summary
• In this lesson, you learned:
• State management is the process by which you maintain application and
session-related information when multiple users request for the same or
different pages of an ASP.NET application.
• State management also includes maintaining page-level information during the
round trip of a Web Form page.
• In an ASP.NET application, the state management feature is implemented using
client-side options and server-side options.
• Client-side options include:
• View State property
• Hidden Fields
• Cookies
• Query Strings
Summary (Contd.)
• Server-side options include:
• Application state
• Session state
• Database support
• ASP.NET Framework uses the ViewState property to automatically save
the values of the page and of each control before the page is rendered.
• A cookie is a small data structure used by a Web server to deliver data to
a Web client. A cookie contains page-specific information that a Web
server sends to a client along with page output.
• Cookies are saved on the client computer and can be either temporary or
persistent.
• A temporary cookie is stored in the volatile memory of the client
computer, whereas a persistent cookie is stored in a text file on the hard
disk of the client computer.
Summary (Contd.)
• ASP.NET provides application state as a means of storing global
application-specific information.
• Accessibility is a concept that is applicable to every application regardless
of the technology and platform on which the application is developed.
• There are four basic principles that every accessible design should follow.
They are:
• Flexible user interface
• Flexible input features
• Flexible output features
• Consistent interface