ASP. NET Applications

Source: Internet
Author: User
Tags microsoft c

Example of ASP. NET application file system layout

ASP.. NET applications include two DLL files in the \ Bin directory and one Default. aspx page, named Menu. A user control named MyWebService. the XML Web Service of asmx and a Global. asax file. In addition, the application is configured using the following three configuration files: computer-level Machine in the system root directory. the website-level Web in the config file, C: \ Inetpub \ Wwwroot directory. the config file and the application-level Web in the application root directory. config file. When the website's Web. the config File overwrites Machine. in the config file. the configuration settings stored in the root directory of the. NET application will overwrite the website's Web. config File and Machine. in the config file.

Comparison between ASP. NET, IIS, and ASP

The relationship between ASP. NET applications and Internet Information Service (IIS) is as follows: IIS uses the aspnet_isapi.dllASP.NET process model to provide services for all requests to published ASP. NET files. IIS does not process the server-side code, while the ASP. NET engine processes the server-side code, and then returns the output to IIS if possible, or another Web Server ).

ASP. NET is not just the next generation of ASP. It provides a completely new programming model for creating network applications using the Internet. ASP. NET and ASP have the following characteristics:

1. Improved performance and scalability

1) compiled and executed: ASP. NET runs faster than traditional ASP, and retains the ASP update model "click to save. No explicit compilation steps are required. ASP. NET automatically detects changes, dynamically compiles files as needed, and saves the compilation results so that subsequent requests can be used again. Dynamic compilation ensures that your applications are always up-to-date, and the operations executed after compilation will make your applications run faster. For most applications migrating from traditional ASP to ASP. NET, the number of pages processed by these applications has increased by three to five times.

2) large-capacity output cache: the ASP. NET output cache greatly improves application performance and scalability. When the output cache is enabled on the page, ASP. NET executes the page once and saves the result in memory before sending it to the user. When other users request the same page, ASP. NET uses the cache results in the memory to provide services to users, rather than re-executing the page. The output cache is configurable and can be used to cache a single region or the entire page.

3) Web session Status: ASP. NET session status allows us to share session data among all computers in the Web field. Now, users can access different servers in the Web field through multiple requests, and still have full access to session data.

2. Enhanced reliability

Memory leakage, deadlock, and fault protection: ASP. NET automatically detects errors such as deadlocks and memory leaks) and recovers to ensure that our applications are always available. For example, when a memory leak is detected, ASP. NET automatically starts a new copy of the ASP. NET workflow and directs all new requests to the process. After the old process completes the processing of pending requests, the leaked memory will be properly disposed and released.

3. easy deployment

1) "contactless" Application Deployment: with ASP. NET, we can deploy the entire application by copying it to the server. Configuration settings will be stored in the XML file of the application.

2) dynamically update the running application: ASP. NET allows us to update compiled components without restarting the Web server. Unlike traditional COM components, which require manual restart of the Web server after deployment updates), ASP. NET automatically detects changes and starts with new code.

3) Simple migration path: ASP. NET can run in Microsoft Windows 2000, Windows XP, and IIS of Windows Server 2003 family members together with traditional ASP applications. We can migrate an application at a time, or even a separate page. ASP. NET even allows us to continue using existing traditional COM business components.

4. New Application Model

1) XML Web Service: XML Web Service allows applications to communicate and share data over the Internet regardless of the operating system and programming language. ASP. NET makes it easy to publish and call XML network services.

2) mobile Web device support: ASP. NET mobile control allows us to process more than 80 mobile Web devices using ASP. NET. We only need to write the ASP. NET application at one time, and the mobile control can automatically generate a page requesting the device.

5. developer Efficiency
1) Simple programming model: controls with server controls allow us to use less code than traditional ASP to build pages with excellent results) ASP. NET makes it easier to dynamically Build Real Web applications.

2) flexible language options: ASP. NET not only supports Microsoft Visual Basic Scripting Edition (VBScript) and Microsoft JScript, but also supports more than 25 types. NET Language, including Visual Basic. NET, Microsoft C #, and JScript. NET built-in support.

3) rich class frameworks :. the. NET Framework Class Library provides more than 4500 types, which encapsulate a large number of functions, such as XML, data access, file upload, regular expressions, Image Generation, performance monitoring and logging, transactions, message queues, and SMTP mail. The above describes ASP. NET applications.

  1. Implementation of ASP. NET plug-in
  2. Overview ASP. NET Applications
  3. Introduction to ASP. NET 2.0 Data Binding
  4. ASP. NET prevents Java Script Injection attacks
  5. ASP. net mvc using T4

Related Article

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.