Areas
HTTP Status Codes
| Status Code | Reason |
| 100 | Continue |
| 200 | OK |
| 201 | Created |
| 300 | Multiple Choices |
| 301 | Moved Permanently |
| 302 | Found |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 407 | Proxy Authentication Required |
| 408 | Request Time-out |
| 413 | Request Entity Too Large |
| 500 | Internal Server Error |
| 501 | Not Implemented |
ASP.NET Object Hierarchy
Control
|_WebControl
|_HtmlControl (any standard HTML element can be accessed from code by adding runat="server")
|_TemplateControl (INamingContainer)
|_Page (IHttpHandler)
INamingContainer
The naming container for a particular control is the first control above it in the hierarchy that implemented INamingContainer. A naming container creates a unique namespace when populating the UniqueID field of controls (a fully qualified name based of the ID property).
The NamingContainer.FindControl(controlID) method searches recursively but does not enter other naming containers.
ASP.NET Lifecycle
| Event | Description |
| PreInit | Use when dynamically creating controls. |
| Init | Fires after control is initialized, use this event to change initialization values. |
| InitComplete | Raised once all initializations are complete on the page and controls. |
| PreLoad | Fired before view state has been loaded and PostBack processing. |
| Load | All controls have been initialized and view state loaded at this time. Page load event called first and then each controls Load event recursively. |
| Control (PostBack event(s)) | ASP.NET fires events on the page or controls that caused the postback to occur. |
| LoadComplete | All controls are loaded. |
| PreRender | Allows final changes to the page or control. Occurs before the saving of ViewState so changes made here are saved. |
| SaveStateComplete | ViewState saved. Changes made to controls here are ignored. |
| Render | A method not an event. ASP.NET calls this recursively on the page and all controls. |
| UnLoad | Can be used for cleanup code to release any unmanaged resources. |
Note that when controls are added dynamically - the above events are all executed sequentially until they catch up to the current stage of their container (typically the page).
Security
Deployment
- Web Setup Projects
- Copy Web Tool - Synchronize to remote server.
- Publish Web Site Tool for precompilation options
- VS2010 Web Deployment