Building ASP.NET application - Best Practices

前端 未结 7 669
轻奢々
轻奢々 2020-12-22 18:40

We are building an ASP.NET application and would like to follow the best practices. Some of the best practices are:


Server side Code:

  • Use catch
相关标签:
7条回答
  • 2020-12-22 18:59

    ASP.NET

    • If you don't use Session state, don't forget to turn off it.
    • Use Server.Transfer instead of Response.Redirect if possible.
    • Set expiration parameter in IIS.
    • Use GZip to compress the text files.
    • Use Server-Side and Client-Side validation together.
    • Use Url Rewriter or Routing to make friendly url for SEO.

    Design

    • Write each class and its properties of your CSS file in the same line. (To decrease the file size)
    • Use CSS Sprites. (To decrease request)
    0 讨论(0)
提交回复
热议问题