asp.net 3.5 framework

Upload: heidi-thompson

Post on 30-May-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 ASP.net 3.5 Framework

    1/15

    ASP.NET 3.5 FrameworkASP.NET 3.5 Framework

    Session 1.2Session 1.2

  • 8/14/2019 ASP.net 3.5 Framework

    2/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 2

    Overview on ASP.NET frameworks

    Framework of ASP.NET 2.0

  • 8/14/2019 ASP.net 3.5 Framework

    3/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 3

    CLR

    An agent that manage code at executionAn agent that manage code at execution Manage memoryManage memory

    CompilationCompilation

    Other servicesOther services

    Framework of ASP.NET 2.0

  • 8/14/2019 ASP.net 3.5 Framework

    4/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 4

    Class Library

    Framework of ASP.NET 2.0

  • 8/14/2019 ASP.net 3.5 Framework

    5/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 5

    Framework of ASP.NET 3.0

    .NET Framework 2.0

    Windows Presentation FoundationWindows Communication Foundation

    Windows Card SpaceWindows Workflow Foundation

  • 8/14/2019 ASP.net 3.5 Framework

    6/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 6

    Framework of ASP.NET 3.5

  • 8/14/2019 ASP.net 3.5 Framework

    7/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 7

    Handling Page Structure

    The main purpose of page structure is to makeThe main purpose of page structure is to make

    business logic and presentation logic separate.business logic and presentation logic separate.

    To make easy coding.To make easy coding.It creates two types ofIt creates two types of

    Pages for single page.Pages for single page.

  • 8/14/2019 ASP.net 3.5 Framework

    8/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 8

    Inline Coding

    If not want to make business logic and presentation logic separate then it isIf not want to make business logic and presentation logic separate then it is

    called In line coding.called In line coding.

  • 8/14/2019 ASP.net 3.5 Framework

    9/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 9

    Inline Coding

  • 8/14/2019 ASP.net 3.5 Framework

    10/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 10

    New Code Behind Model

    It will have two separate files.It will have two separate files.

    It is a best practice to use new code behind model.It is a best practice to use new code behind model.

  • 8/14/2019 ASP.net 3.5 Framework

    11/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 11

    What does Event Mean?What does Event Mean?

    Whenever you send request of your page it will raise some events inWhenever you send request of your page it will raise some events in

    following manner,following manner,

    Page Events

    InitInit PreRenderPreRender

    3. PreInit3. PreInit LoadCompleteLoadComplete

    InitCompleteInitComplete PreRenderCompletePreRenderComplete

    7. PreLoad7. PreLoad 8. SaveStateComplete8. SaveStateComplete

    9. Load9. Load 10. Unload10. Unload

  • 8/14/2019 ASP.net 3.5 Framework

    12/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 12

    Basic Page eventsBasic Page events

    Page_InitPage_Init

    Called when the page is about to be initialized with its basic settings.Called when the page is about to be initialized with its basic settings.

    Page_LoadPage_Load

    Called once the browser request has been processed, and all of the controls in the page haveCalled once the browser request has been processed, and all of the controls in the page have

    their updated values. It means that when the page has initialized its all values then it will loadtheir updated values. It means that when the page has initialized its all values then it will load

    it to the server in this event.it to the server in this event.

    Page_PreRenderPage_PreRender

    Called once all objects have reacted to the browser request and any resulting events, butCalled once all objects have reacted to the browser request and any resulting events, but

    before any response has been sent to the browser.before any response has been sent to the browser.

    Page_UnLoadPage_UnLoad

    Called when the page is no longer needed by the server, and is ready to be discarded.Called when the page is no longer needed by the server, and is ready to be discarded.

    Page Events

  • 8/14/2019 ASP.net 3.5 Framework

    13/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 13

    Let us create one application that will illustrate the events of page.Let us create one application that will illustrate the events of page.

    Page Events - Programmatically

  • 8/14/2019 ASP.net 3.5 Framework

    14/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 14

    Page Events - Programmatically

  • 8/14/2019 ASP.net 3.5 Framework

    15/15

    SHARMA WEB ACADEMY, Prepared by Kinjal Solanki 15

    Summary