下载此文档

web.config详解(web.config详解).doc


文档分类:IT计算机 | 页数:约25页 举报非法文档有奖
1/25
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/25 下载此文档
文档列表 文档介绍
()
First, recognize the file
file is an XML text file, its configuration information used to store the Web application (authentication application settings Web as the mon), it can appear in every directory of the application. When you create a Web through application, by default will automatically create a default file in the root directory, including the default configuration settings, all subdirectories inherit its configuration settings. If you want to modify the configuration settings of the subdirectory, you can create a new file in the subdirectory. It provides configuration information other than the configuration information inherited from the parent directory, as well as rewriting or modifying the settings defined in the parent directory.
(1). is in the XML file storage specification, configuration file is divided into the following format
1. configuration section handler declaration
Features: at the top of the configuration file included in the <configSections> logo.
2. specific application configuration
Features: located in <appSetting>. Can set the information such as global constants that define the application.
3. configuration section settings
Features: located in the <> section, the runtime behavior.
4. configuration section group
Features: with <sectionGroup> tags, you can customize the grouping, and you can put it inside the <configSections> or other <sectionGroup> Tags
(two) each section of the configuration section
1.<configuration> Festival
The root element, the other nodes, is in its interior
2.<appSetting> Festival
This section is used to define application settings. Some of the uncertainty set, can also allow users to set their own according to their actual situation
Usage:
I.
<appSettings>
<add key= "Conntction" value= "server=; userid=sa; password=; database=Info;"
<appSettings>
A connection string constant is defin

web.config详解(web.config详解) 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数25
  • 收藏数0 收藏
  • 顶次数0
  • 上传人rjmy2261
  • 文件大小30 KB
  • 时间2017-11-27