Asp.net Server Page handling process

Source: Internet
Author: User

I. Differences between static pages and dynamic pages

Static pages are read directly from the hard disk by the server and then sent back. Dynamic Pages need to create the page class objects, call the object method, and send back the objects in the methods. The browser requests the asp.net page to request the pr method of the asp.net page class.

Ii. Request Process

Iis itself cannot process dynamic pages. It must be handed over to the asp.net framework for processing. iis will determine the page suffix (processed in the iis handler ing). If it is static, it handles it by itself. The dynamic file is handed over to aspnet_isapi.dll for processing, and then the request is handed over to the ISAPIRuntime class in the asp.net framework for processing. (This is the classic mode, that is, the dynamic page is handed over to the. net Framework for processing through the suffix. iis7.0 starts, and the. net Framework is integrated into iis In the integration mode)

3. Make a simple template

Static Page first.html (style omitted)

Class Id Class NameView Code

General handler page List. ashx

= DbHelperSQL. GetDataTable (); = strPhyPath = context. Server. MapPath (strFile = (I =; I <dt. Rows. Count; I ++ = strFile. Replace (View Code

PageHelper

ReadFile (View Code

Iv. simple process of asp.net framework

Certificate -------------------------------------------------------------------------------------------------------------------------------------------

Soft seek online education is the most suitable for online software training for college students and office workers. It mainly teaches asp.net dynamic website production and remote real-time teaching in the yy education room. Each course is recorded as a high-definition video and shared after class, the instructor provides 8 hours of full-time online tutoring during the day. Add QQ group: 138800420 for free trial.

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.