Академический Документы
Профессиональный Документы
Культура Документы
Pre-Assessment Questions
1. To implement fragment caching the page should contain________.
a. Applet
b. Custom Web server control
c. User control
d. HTML Web server control
Solutions to Pre–Assessment
Questions
1. d. HTML Web server control
2. a. 32 bits
3. c. Time for which a cache can be accessed
4. a. ResGen.exe
5. c. Localizability
Objectives
In this lesson, you will learn to:
• machine.config
• web.config
Configuration Sections
• The configuration sections control and manage the behavior of a Web
application.
• The various configuration sections available in ASP.NET are as follows:
• <configSections> Element
• <appSettings> Element
• <customErrors> Element
• <trace> Element
• <compilation> Element
• <browserCaps> Element
• <globalization> Element
• <httpHandlers> Element
• <location> Element
• <processModel> Element
• Solution
Summary
• In this lesson, you learned that:
• The configuration information for ASP.NET applications is defined and
contained in the configuration file named web.config.
• ASP.NET supports two types of configuration files:
• machine.config
• web.config
• Any configuration setting defined in configuration file lower in the
hierarchy will override the setting defined in a file higher in the order.
• All the elements in a web.config file are encapsulated within the root
<configuration> element.
• There are three types of elements included within the root
<configuration> element:
• Configuration section handler declarations
• Configuration section groups
• Configuration section settings
©NIIT Developing Web Applications Using ASP.NET Lesson 5A / Slide 30 of 34
Configuring and Securing Web Applications
Summary (Contd.)
• The various configuration sections available in ASP.NET are as follows:
• <configSections> Element
• <appSettings> Element
• <customErrors> Element
• <trace> Element
• <compilation> Element
• <browserCaps> Element
• <globalization> Element
• <httpHandlers> Element
• <location> Element
• <processModel> Element
Summary (Contd.)
• There are two methods to store custom configuration in the configuration
file. The methods are:
• Key/Value pair method
• Custom section method
• There are two different methods to retrieve configuration information:
• ConfigurationSettings.AppSettings method
• ConfigurationSettings.GetConfig method
• The three fundamental security mechanism in ASP.NET:
• Authentication
• Authorization
• Impersonation
• ASP.NET addresses the security needs of Web applications by using:
• Microsoft .NET Framework security
• Internet Information Service (IIS)
Summary (Contd.)
• Authentication mechanisms available with IIS are:
• Anonymous
• Basic
• Digest
• Integrated Windows
• The <authentication> tag is used to configure the authentication
mechanism of a Web application
• The mode attribute is used to specify the authentication mechanism to
be implemented
• The mode attribute can have the following values:
• Windows
• Forms
• Passport
• None
Summary (Contd.)
• ASP.NET provides the following two mechanism to authorization an user:
• File Authorization
• URL Authorization
• The <authorization> tag is used to implement authorization in a Web
application.
• The <authorization> tag includes two child elements:
• <allow> tag
• <deny> tag
• When impersonation is enabled, IIS uses the client token to impersonate the
client to access resources.