[ASP. NET] 10 tips for writing High-Performance Web Applications

Source: Internet
Author: User
Reference http://msdn.microsoft.com/msdnmag/issues/05/01/ASPNETPerformance/

To become an excellent ASP. NET developer, remember these 10
1. Return multiple resultsets
You can return multiple query results when accessing the database at a time.
2. Paged Data Access
Try not to use pagination in the DataGrid, and use the stored procedure for this operation.
3. Connection Pooling
Use the database connection pool. Create a database connection pool connected to the database on the Web server to reduceProgramThe number of requests that require TCP/IP connection each time when the database is connected, improving the response speed.
4. ASP. NET cache API
Cache can be used for some common data.
5. Per-request caching
6. Background Processing
7. Page output caching and proxy servers
Be careful about proxy caching or cacthe in your IIS. That is to say, sometimes you will find that the results of a program refresh several times are the same (should be different), which is basically a cache problem. You can add some other parameters after the request URL to avoid it. Display. aspx? Temp = 12345678.
8. run IIS 6.0 (if only for Kernel caching)
Note: Sometimes you need to determine whether your program is running under iis6.0, because something may run abnormally.
9. Use gzip Compression
You can use the compression function for big data.
10. Server Control view State
Sometimes using stateview on the client side is not a good thing.

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.