>>Asp.Net Errors Handling
1.<@Page ... ErrorPage ="something.aspx" ...or in code behind:this.ErrorPage = "something.aspx" 2. Page.Error event handler 3. Handle error in application levelApplication.Error event handler in global.asax HttpModule level ?? >> Type Safe
cannot access an object's private member.CLR ensure"managed code" refers to the code running on CLR. unmanaged code, e.g.
call low level OS functions, are binary code.
CLR provides API for compiler to create code controlling execution.
JIT - Just in time compilation
Application.LockApplication.Unlock
for updating application states
HttpApplication class
>> Cache Class
HttpContext.Current.Cache and Page.Cache are objects of System.Web.Caching.Cache class
HttpSession The Session object in an aspx page, is an instance of this object.
>> Hashtable
Hashtable.Synchronized()??
>>Cross-Page Posting
By default, postback action in a page is to itself. However, in
certain case, we need to postback to another page. this is called
use case:multi-page form ??
>> Asp.net Page Load Process
When Asp.net worker process received a request to a page. a series of actions are going on and end up with a set of objects constructed.
asp.net runtime will also determine comilation is needed to a page. when cached page can not be used, it will call compiler to compile it JIT.
The lifecycle of a page:
InitLoadValidatePostback EventRenderUnload
in this process, Page class exposes a number of event making developer
can customized the process.
PreInitInitInitComplete
PreLoadLoadLoadComplete
PreRenderSaveStateCompleteRender
Unload
>>SqlLoader - a commandline tool
>> Delegate and Event
delegate is used to declare an event by indicating the handler prototype.
event is defined on a delegate. event makes multiple subscription possible.
publisher/subscriber pattern, decoupling tool
No comments:
Post a Comment