Web.config Simple Introduction

Source: Internet
Author: User
The web is called Web.config of course it's a Web site. Many things can be set up here
Here is a brief introduction
Web.config is an XML document (now increasingly popular with XML as a configuration file) the root element is configuration and then contains a system.web node In the third level is the site of various settings web.config can be set up a lot of tags, then, simple to do an introduction, when used when you can go to a good check
Custom settings in the Web system I often use it to save some of the related connection data of the database after it is easy to read
About browser settings such as whether to allow Javaapplet ...
about how to compile

Customize the foliage that is pointed at the time the error occurs to avoid exposing some important messages
Defines the global settings for a site, mostly syntax-related
The HTTP module that is set up for the site can be defined by the system itself, which is used when the URL rewrite
Set how cookies are encrypted
Wow, apsx work way, too much to do.
How the session is handled
This setting is used when using WebService.
Examples of application of appsettings

<appSettings>
<add key= "DSN" value= "Server=localhost;uid=sa;database=northwind"/>
</appSettings>

Then you can use string odsn = configurationsettings.appsettings["DSN" in the leaf of the connection database to represent that string of connection strings





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.