10 simple ways to improve the performance of a asp.net program

Source: Internet
Author: User

1, do not participate in the postback mechanism of the control, do not use server controls, try to use static HTML markup

2, compile-time use Release configuration

3, when formally put into use, remember to set debug to False

4,smartnavigate remember to set to true, it can let the viewer feel your performance improvement

5, if it is not necessary to keep the updated page, please remember to add a declaration that it can dramatically improve performance

6, in addition to the records that need to be paginated and those that must be kept updated in real time, other entries from the database, remember to cache them with the cache object

7, turn off the ViewState properties of controls that do not require ViewState

8, close the EnableSession properties of pages that do not need to use session

9, if you need to get data from the database on a large scale, assemble the scattered data acquisition tasks in batches, that is, try to get the data you want with a minimum number of database connections, and try to combine the tasks that can be merged with stored procedures.

10, try to use stored procedures rather than SQL statements.

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.