ASP.NET
  Home arrow ASP.NET arrow Page 5 - ASP.NET Supports Web Services
Iron Speed
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

ASP.NET Supports Web Services
By: Dwight Peltzer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 11
    2004-04-26

    Table of Contents:
  • ASP.NET Supports Web Services
  • Getting Started
  • Examining the Code-behind feature
  • Examining the ASP.NET Page Class Process
  • Describing an ASP.NET Page’s Life Cycle

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!

    ASP.NET Supports Web Services - Describing an ASP.NET Page’s Life Cycle


    (Page 5 of 5 )

    Examining a Page’s life cycle is the next step. By doing so, we will add to our knowledge of ASP.NET pages. Each ASP.NET page contains a server-side <form> tag. This tag instructs the page to post back to itself when a client submits the form. The Form type events include Load, Draw, Render, and Unload.

    ASP.NET controls also render JavaScript to the client, enabling actions such as selecting a specified item from a drop-down list, causing a post-back to the server. The ASP.NET runtime renders a hidden field to the page permitting it to preserve state between client requests. Because ASP.NET is event-driven, client and page interaction allows the page to be re-constructed on the server. It also facilitates code execution in response to events raised by users and any changes occurring in the hidden fields. Here is the page lifecycle processed step-by-step. The figure displayed here illustrates an ASP.NET’s page lifecycle.

    ASP.NET Lifecycle
    Figure 1  The ASP.NET lifecycle

    • The initial event begins with an HTTP URL client request for rendering a specified page to the client’s browser.

    • The Load event fires next. The CLR uses reflection to examine the .aspx page and determine whether the page is called for the first time, or represents a post back through user interaction with a button or some other page control.

    • If the event is a first-time request, the code is converted to a class.

    • The class compiles to an assembly and is stored in a valid Internet Information Server virtual directory where the page’s location can be determined.

    • If the page is posted back, ASP.NET restores any data residing in hidden fields (ViewState) and passes the information to the server.

    • The control event triggering the post back fires. At this stage, all control events are initiated. The change events fire first; those events are stored in the browser and execute only when the client sends the page back to the server. After a control event fires, the page is rendered to the browser.

    • Before Page_Unload unloads the page from server memory, a final event performs any cleanup tasks before the unload method disposes the page.

    Many other features are supported in ASP.NET by the Common Language runtime. They include Web Forms, the new programming model for ASP.Net, Server Controls, Web Services, Caching, and Configuration improvements.

    In the next article we will focus on the enhanced session-state management model in ASP.NET, as well as taking a look at Page Directives. We’ll meet again in the next article. Happy Explorations in ASP.NET.

    References

    1. .NET & J2EE Interoperability, McGraw-Hill, 2004.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    ASP.NET ARTICLES

    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...
    - Back-end Management Tasks for an ASP.NET AJA...
    - User Information Management for an ASP.NET A...
    - Adding Comments and Search to an ASP.NET AJA...
    - Order-Related Modules for an ASP.NET AJAX Se...
    - User and Role Management for an ASP.NET AJAX...
    - Programming an ASP.NET AJAX Server-Centric B...

    SunQuest




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway