Web.config brief introduction

xiaoxiao2021-03-06  50

Called with Web.config, is of course, a lot of things to configure the website, you can set the next step here. Web.config is an XML document (now more and more popular XML do configuration files) The root element is configure, then contains a system. The .Web node is a very much label for the various settings of the site for the site. So, make a brief introduction, when you use it, you can check it.

Custom settings in the Web system I often use it to save some relevant connection data for the database. It is easy to read.

About the setting of the browser, such as whether JavaApplet is allowed ...

About compilation

The leaves pointed to when you have an error, which can avoid exposing some important messages.

Define the global settings of the site, mostly related to syntax

The HTTP module set for the site can make the system can be used by this in the URL Rewrite.

Set up cookie encryption

Wow, the APSX work method must do too much.

Session processing method

This setting will be used when using WebService.

AppSettings Application Example

Then you can use string = configurationSettings.appsettings ["DSN"]; to represent the string of connected strings in the leaf of the connection database.

转载请注明原文地址:https://www.9cbs.com/read-117472.html

New Post(0)