asp.net 1 Summary

1. Defaul.aspx convenient url rewriting

2. Models is what we call (ORM) object-relational model, the database is mapped to a class or object.

3. Html annotated with <! - Note -> // ,, by program code

4. <ul> <li> Format

5. Tempdata and Viewdata distinction:

    1) .Tempdata action can be transmitted across;

    2). Reserved only once (once again set does not exist)

6. Tempdata commonly used for Error executing the action, throwing an exception (an exception look good)

7. When passing parameters to the type transformation example: (ViewData [ "user"] as MvcDemo.Code.User) .Name

8. passing parameters View,. Acceptance parameters with ViewData.Model. . But also need to define the type of Model, a generic of <MvcDemo.Code.User> .cs file in the appropriate view, the generic form to be transmitted, disadvantages: each page can only take one, as in View only pass a. The pass can only be a reference type (can not be a long, int)

9.GAC Global Assembly Cache, Global Assembly Cache

10. AutoEventWireup indicate whether the event is automatically matched controls (Autowire). If you enable automatic event match, true; otherwise false. The default value is true.

     ASP.NET page framework also supports in an automated manner and methods associated with the event page. If AutoEventWireup Page directive property is set to true (or the absence of this property, because it defaults to true), the

     Page framework automatically calls page event that Page_Init and Page_Load method. In this case, without any explicit or delegate Handles clause.

11. The configuration file can be placed in four places: the machine, site, application, subdirectory

12. Only two conditions can cause rebound process: (1) How to use machine processes more than 60% of the physical memory (designated by the attribute MemoryLimid); (2) if there are more than 5,000 requests waiting in the queue...

Reproduced in: https: //www.cnblogs.com/gorgeous1314/archive/2012/07/20/2601390.html

Guess you like

Origin blog.csdn.net/weixin_34388207/article/details/93431894