In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to understand the ASP.NET Web application model, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Some asp.net programmers say: Web.config file? I've never heard of it, but doesn't the program I write work well? Yes, you're right. The program can work without Web.config files. However, if you have made a large website, you need to do some overall configuration of the entire site, such as the language in which the pages of the entire site are written, the security authentication mode of the site, the way Session information is stored, etc., then you need to use Web.config files. Although some of the options in the Web.config file can be configured through IIS, if there are corresponding settings in Web.config, the configuration in IIS will be overwritten. Moreover, the convenience of the Web.config file is that the settings in the Web.config can be accessed by calling the System.web namespace in the asp.net page.
There are two types of ASP.NET Web.config, server configuration file and Web application configuration file, both of which are called Web.config. In this configuration file, a series of information about the language in which the web pages in the current IIS server are written, the application security authentication mode, and how Session information is stored will be saved. This information is saved using XML syntax, and if you want to edit it, just use a text editor.
The server profile works for all applications in all sites under the IIS server. In .NET Framework 1.0, the Web.config file for the server exists:\ WinNT\ Microsoft.NET\ Framework\ v1.0.3705.
The ASP.NET Web application configuration file Web.config is saved in each Web application. For example: the root directory of the current Web site\ Inetpub\ wwwroot, and the current Web application is MyApplication, then the root directory of the Web application should be:\ Inetpub\ wwwroot\ MyApplication. If your site has one and only one Web application, generally speaking, the root directory of the application is\ Inetpub\ wwwroot. If you want to add a Web application, just add a virtual directory in IIS with the application starting point. The files and directories in this directory will be treated as a Web application. However, adding Web applications through IIS will not generate Web.config files for you. If you want to create a Web application with a Web.config file, you need to use Visual Studio.NET to create a new Web application project.
The configuration file Web.config for ASP.NET Web applications is optional and optional. If not, each Web application uses the server's Web.config configuration file. If so, the corresponding value in the server Web.config configuration file is overwritten.
In asp.net, Web.config changes will automatically take effect immediately after they are saved, instead of having to restart the Web application to take effect after the configuration file in ASP has been modified.
The above is how to understand the ASP.NET Web application model, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.