Asp.net Learning Journey 2

Source: Internet
Author: User

Today's content is relatively simple .......

Two form submission methods: Get/post

GET request. querystring ["Control name"]
POST request. Form ["Control name"]
GET/POST request ["Control name"]

Encoding Method
Gb2312, GBK, Unicode

Gb2312 has more than 6000 Chinese characters. GBK is extended based on gb2312 and can display 10 thousand million Chinese characters .. unicode can display 20901 Chinese characters, from \ u4e00 to \ u9fa5, and display Japanese...

 

Garbled Problem

Garbled characters are produced by inconsistent encoding of non-numbers and English characters during the operation. For example, UTF-8 is used when the form is submitted, which is processed by the server.

It is encoded with gb2312, leading to incorrect display and garbled characters.

ASP. NET built-in folder

Bin: used to store third-party DLL class library files
App_code: Used for the existence of middleware code. Generally, it is a separate. CS file, which itself is a class.
App_data: used to store database files, such as. MDF.

Note: The preceding folders cannot be directly accessed in the browser, and the files in the folder cannot be downloaded in the browser.

Asp.net page lifecycle (the trace of the page can be tracked if it is set to true)

 

1. Page request: when a user requests a page before the page lifecycle starts, Asp.net determines whether to analyze and compile the page, or whether the page can be run again

Page to send the cache of the page for response

2. Start: In the start phase, page properties such as request and response will be set. In this phase, the page will also determine whether the request is sending a request or a new request, and set

Ispostback attribute. In addition, the uiculture attribute of the page will be set in the start phase.

3. Page initialization: During page initialization, you can use the controls on the page and see the uniqueid attribute of each control that you love. In addition, any topic will be used for the page.

If the current request is a send-back request, the data has not been loaded and the control property has not been restored to the view status value.

4. Loading: during loading, if the request is a send-back request, the attributes of the information value control are restored from the view status and control status.

5. Verification: During verification, the validate method of all validators controls is called, which sets the isvalid attributes of each validators control and the page

6: Rendering: during rendering, the view status is saved to the page, and each control is called to provide the output to the page's response attribute.

Outputstream.

7: uninstall: the page is displayed completely. When the page is sent to the client and is ready to be discarded, it is called to uninstall. At this time, the page properties will be cleaned up.

 

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.