Personal Summary of precautions for web software development

Source: Internet
Author: User

Precautions for web software development are summarized below. If you do not know right or wrong, please correct me.

1. Optimize website pages to reduce space,
2. Reduce the image size. Try to merge the small image into a large image and use css to locate the image.
3. Use html server controls as much as possible for website controls. Use ajax to implement page-friendly
4. Verify the database connection string in windows. Use the parameter value or stored procedure whenever possible.
5. Use system cache, database cache, and page Cache
6. Enable gzip to compress page files
7. enable verification code to prevent spam Information
8. Prevent SQL injection attacks,
9. Implement file anti-Leech to reduce server traffic and save server bandwidth
10. Paging of large data storage process
11. disable unnecessary sessions
12. Disable unwanted viewstate
13. Disable debugging mode
14. close does not actually close the resource, and dispose means actually destroy the resource.
15. Verify the verification on the client as much as possible
16. datareader needs to be closed in time
17. Sorting and retrieval of datatable can be used after dataset is loaded to reduce the use of SQL statements.
18. Note the field type when using the database for table creation.
19. Avoid handling large transactions as much as possible
20. Avoid using cursors whenever possible
21. Try to use reperater instead of dataview. repeater can customize templates,
22.css should be merged into one to reduce network requests
23. javascript is executed later. Try to put it at the bottom of the page to speed up page display.
24. Use a view instead of a Database
25. Try to use static pages in the system.
26. Large website system pages should be dominated by static pages. You can consider using url rewriting.
27. Try to use xml to configure the system as much as possible and store small databases.
28. Familiar with the value transfer between asp.net pages. Pay attention to garbled characters. Be sure to use the server. Method for encoding and decoding.
29. Master the simplest layer-3 architecture, factory model, and abstract factory model.
30. For multi-task execution, consider the use of threads.

 

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.