Introduction to ASP'NET Web Development - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Introduction to ASP'NET Web Development

Description:

Originally Active Server Pages (ASP) ASP.NET. Successor of ASP ... Client may return to any page at any time in any state ... the server. Request. ... – PowerPoint PPT presentation

Number of Views:81
Avg rating:3.0/5.0
Slides: 8
Provided by: michael1501
Category:

less

Transcript and Presenter's Notes

Title: Introduction to ASP'NET Web Development


1
Introduction to ASP.NET Web Development
  • 10 November, 2003

2
Overview
  • Originally Active Server Pages (ASP)
  • ASP.NET
  • Successor of ASP
  • Different paradigm (.NET Framework)
  • Topics
  • Stateless web paradigm
  • Code behind pages
  • Response and Request objects
  • Session and Application variables

3
Stateless web paradigm
  • Client may return to any page at any time in any
    state
  • State information is posted during each page
    request (?xxxxxxxxxx)
  • ASP.NET web controls automatically repost their
    own state to maintain the ViewState of the page

4
Code behind pages
  • Binds HTML page to a code file written in a .NET
    language
  • HTML page is encapsulated in a System.Web.UI.Page
    class
  • Events such as Page_Load may be handled
  • All ASP.NET controls can be used as regular .NET
    objects
  • Scripts in HTML page may call code behind
    functions
  • Everything will eventually end up as HTML

5
Response and Request objects
  • Response
  • Represents the client browser
  • Response.Redirect(http//www.microsoft.com)
  • Response.CookiesUserName Bob
  • Request
  • Represents the server
  • Request.PhysicalApplicationPath
  • UserName (String)Request.CookiesUserName

6
Session and Application variables
  • Session variables
  • Hashtable-style collection of name-value pairs
  • Remembered until the client closes the browser
    (or the session timeout expires default 20
    minutes)
  • Only for one client
  • SessionValidUser true
  • Application variables
  • Hashtable-style collection of name-value pairs
  • Always remembered
  • For all clients
  • ApplicationNumClients NumClients 1

7
QA
Write a Comment
User Comments (0)
About PowerShow.com