ASP.NET Web Forms

ASP.Net Base Principles and Instruments

马上开始. 它是免费的哦
注册 使用您的电邮地址
ASP.NET Web Forms 作者: Mind Map: ASP.NET Web Forms

1. Web Form

1.1. Контролы -.designer.cs

1.2. Файл разметки - .aspx

1.2.1. Import

1.2.2. Asp controls

1.2.3. Html

1.2.4. Code fragments <% .. %>

1.3. Файл кода - .cs

1.3.1. C# code

1.3.2. Page Lifecycle

1.3.2.1. PreInit

1.3.2.1.1. IsPostBack availible

1.3.2.1.2. Create dynamic controls

1.3.2.1.3. Set master page and theme props

1.3.2.2. Init

1.3.2.2.1. Read or initialize control properties

1.3.2.3. InitComplete

1.3.2.3.1. Processing tasks that require all initialization to be complete

1.3.2.3.2. Make changes to the view state

1.3.2.4. Preload

1.3.2.4.1. ViewState is ready

1.3.2.4.2. PostBack data are ready

1.3.2.5. Load

1.3.2.5.1. All values are restored

1.3.2.5.2. IsPostPack check mostly

1.3.2.5.3. Call Validate methods

1.3.2.5.4. Set properties in controls

1.3.2.5.5. Establish DB connection

1.3.2.6. Controls PostBack events

1.3.2.7. LoadComplete

1.3.2.7.1. For tasks that require that all other controls on the page be loaded

1.3.2.8. PreRender

1.3.2.8.1. Allows final changes to the page or its control

1.3.2.8.2. Takes place before saving ViewState

1.3.2.9. PreRenderComplete

1.3.2.10. SaveStateComplete

1.3.2.11. Unload

1.3.2.11.1. Cleanup code

1.3.2.12. Error

2. Global.asax.cs

2.1. Application_Start

2.2. Application_End

2.3. Application_BeginRequest

2.4. Application_AuthenticateRequest

2.5. Application_Error

2.6. Session_Start

2.7. Session_End

2.8. Global

3. Controls

3.1. Server controls (only .cs)

3.2. User controls (ascx)

3.3. Standart .NET Controls

3.4. Server HTML elements

4. State Data

4.1. Application

4.1.1. Stores while applications works

4.1.2. HttpApplicationState

4.1.3. Key/value array

4.2. ViewState

4.2.1. Save data for one form

4.2.2. Stores as a request/response part

4.2.3. Key/value array

4.3. Profile

4.3.1. ProfileBase class

4.3.2. Stores in DB

4.4. Session

4.4.1. HttpSessionState class

4.4.2. Key/value array

4.4.3. SessionState in web.config

4.4.3.1. timeout

4.4.3.2. mode

4.4.3.2.1. StateServer

4.4.3.2.2. SQL Server

4.4.3.2.3. InProc

4.5. Cookies

5. Exceptions

5.1. Mostly like MVC

5.2. Application level

5.2.1. Global.asax

5.2.1.1. Server.Execute(Page)

5.2.2. Application_error

5.3. HttpContext

5.3.1. AddError

5.3.2. AllErrors

5.3.3. Application_EndRequest

5.3.4. CleanError

6. Configuration

6.1. Web.config

6.1.1. Section groups

6.1.2. App Settings

6.1.3. Sections

6.1.3.1. Items

6.1.3.1.1. lock

6.2. System.Web.Configuration

6.2.1. WebConfigurationManager

6.2.2. AppSettings

6.2.3. ConnectionStrings

6.2.4. GetWebApplicationSection(s)

6.2.5. GetSection(s)

6.2.6. OpenWebConfiguration(path)

7. Master pages

7.1. ContentPlaceHolder

7.2. Can include each other

8. HttpContext

8.1. Application

8.2. Cache

8.3. Current

8.4. Items

8.5. Profile

8.6. Request

8.7. Response

8.8. Session

8.9. Server

8.10. Timestamp

9. Modules

9.1. Generate requests

9.2. CS file

9.3. IHttpModules

9.4. Register in web.config

9.5. Session Windows Authentication

10. Event Handlers

10.1. IHttpHandler

10.2. Generate response

10.3. .cs

11. Cache

11.1. Could set

11.1.1. As array value

11.1.1.1. Cache[key] = value

11.1.2. By Method

11.1.2.1. Cache.Insert(...)

11.1.2.1.1. UpdateNotification

11.1.2.1.2. RemoveNotification

11.2. Array of key/value

11.3. Expiration time

11.3.1. Absolute

11.3.2. Sliding

11.4. Available for

11.4.1. All requests

11.4.2. All users

11.5. Stores in memory

11.5.1. If too much data

11.5.1.1. increase response time

11.5.1.2. timeout errors

11.6. Priority

11.7. Dependencies

11.7.1. CacheDependency

11.7.2. AggregateCacheDependency

12. Routing

12.1. ASP.NET Friendly Urls

12.2. Path

12.2.1. Virtual

12.2.2. Physical

12.2.3. HttpRequest

12.2.3.1. ApplicationPath

12.2.3.2. Path

12.2.3.3. PhysicalApplicationPath

12.2.3.4. PhysicalPath

12.2.3.5. MapPath(virtual)

12.2.3.6. ...

12.3. Rewrite Path

12.4. AppStart\RouteConfig.cs

12.4.1. IHttpModule

12.4.2. Register Routes

12.4.2.1. MapPageRoute

12.4.3. IRouteHandler

13. Validation

13.1. Server

13.1.1. IsPostBack

13.1.2. Request

13.1.2.1. ["action"]

13.1.2.2. HttpMethod

13.1.2.3. Form

13.2. Client

13.2.1. jQuery

13.2.1.1. validate.js

13.2.2. text1.ClientID

13.2.3. HTML5 Check Validity

13.3. XSS

13.3.1. web.config

13.3.1.1. HttpRuntime

13.3.1.1.1. RequestValidationMode

13.3.1.1.2. ValidateRequestMode

13.4. Controls

13.4.1. ValidationSummary

13.4.2. RequiredFieldValidator

13.4.3. RangeValidator

13.4.4. ValidationRepeater

14. Models

14.1. Model.cs

14.1.1. System.ComponentModel.DataAnnotations

14.1.1.1. Compare

14.1.1.2. Range

14.1.1.3. RegularExpression

14.1.1.4. Required

14.1.1.5. StringLength

14.1.1.6. CustomValidation

14.2. IValueProvider

14.2.1. FormatValueProvider

14.2.2. ControlValueProvider

14.2.3. CookieValueProvider

14.2.4. QueryStringValueProvider

14.2.5. ProfileValueProvider

14.2.6. RouteValueProvider

14.2.7. ViewStateValueProvider

14.3. TryUpdateModel

14.4. GetModelValidationErrors

14.4.1. ModelState.IsValid

14.4.1.1. Keys

14.4.1.2. Values

14.4.1.3. Item

14.4.1.3.1. Value

14.4.1.3.2. Errors

14.5. RepeaterItemType

14.6. GetData

14.7. System.Web.ModelBinding