"ASP. NET 2.0 secrets" Reading Notes (4)

Source: Internet
Author: User
Tags server memory

* MIME: Baidu encyclopedia, which is the multimedia type of the notification browser.

* ASP. NET: The execution user. In 2K3, It is the network service, and other systems are the ASPNET accounts.

* Store files in the database: It's very simple. Let's not talk about it. p124

* Delivery file: p127, directly in context. response. binarywrite (bytes );

* Maxrequestlength: It is often referred to as the 4 MB limit. To transfer a file larger than this limit, you must modify this parameter. Otherwise, an exception is thrown, but this parameter is not completely modified, next, let's talk about the following items.

* Lengthdiskthreshold: As it literally means, it aims to solve the limited memory for uploading files with a relatively large memory. In 2.0, its default value is 80 KB, the part that exceeds it is cached in the file system. Of course, this value is smaller than the one above,

*. Write (@ buffer, null, 0): When writing data using this clause, the buffer size is preferably 8040 bytes (recommended by Microsoft)

* Commandbehavior. sequentialaccess: This method can be used to stream read data. It is best to set it to 8040 bytes for reading. It is a memory and can be left empty.

* Disable caching when outputting large files: Same as above. When the file is divided into 8040 bytes, It is not stored in the server memory.

* Textptr (): This is used by databases before sql2005, instead of the Write statement;

* Application: the previous ASP object can be replaced by a static object and placed in global. aspx, which is faster and has no process problems.

* Write down the two books we saw today, ". Net security programming" and "Visual Studio hacks".

* Wizardstep-steptype: it is very important to control the current type and must be customized.

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.