Active Server Pages - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Active Server Pages

Description:

Active Server Pages. v.s. Java Server Pages. Presenters: Lan Guo. Qunying Fan ... What is Active Server Pages(ASP)? Developed by Microsoft. Server-side Script ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 13
Provided by: peix
Category:
Tags: active | pages | server

less

Transcript and Presenter's Notes

Title: Active Server Pages


1
Active Server Pages v.s. Java Server Pages
Presenters Lan Guo Qunying Fan
Pei-Xun Wu Date
02-11-2000
2
What is Active Server Pages(ASP)?
  • Developed by Microsoft
  • Server-side Script
  • Executed in Web Server
  • Response to user request

3
Which web server can run ASP?
  • Windows Platform
  • - Internet Information Server (IIS 3.0 5.0)
    for NT/2000
  • - Personal Web Server for Win98
  • Non-Windows Platform
  • - Chilisoft ASP product for Unix variants

4
Structure of ASP(1/2)
  • HTML Document
  • Server-side Script
  • Using lt gt Script element
  • - ex. lt gt
  • Using ltSCRIPTgt element
  • - ex. ltSCRIPT RUNATSERVERgt - -
    lt/SCRIPTgt
  • Support two (or more) Script Language
  • VBScript (default)
  • JScript
  • switch by using lt_at_ LANGUAGE Jscript gt

5
Structure of ASP (2/2)
  • Server-side Include
  • - Including separate files by
  • lt! -- INCLUDE FILEfilename -- gt
  • or
  • ltSCRIPT RUNATSERVER SRCfilenamegt
  • lt./SCRIPTgt

6
Processing an ASP File
  • ASP pages are .asp files
  • Locate server-side code
  • Compile server-side code by proper scripting
    engines
  • Insert result to appropriate points into the
    page
  • Send the page to IIS

7
ASP with Web Server
Web Server
ISAPI
Internet Serer Application Programming Interface
ASP DLL
ASP Script
Database
Scripting Engines
8
The Intrinsic ASP Objects (1/3)
  • Response Object
  • - used to access the response created to send
    back to client
  • Application Object
  • - created when ASP DLL is loaded
  • - provide a repository for storing variables
    and object reference
  • - available for all pages

9
The Intrinsic ASP Objects (2/3)
  • Session Object
  • - created for each visitor when they first
    request ASP page
  • - remain available till default time out
  • - store variables and object references
  • - available only to the pages that this visitor
    opens
  • Server Object
  • - provide method and properties used in scripting
    with ASP
  • ASPError Object
  • - provide detail information about the last error
    occured

10
The Intrinsic ASP Objects (2/2)
Application Object
Session Object
Client
Request
Server
Response
Session Object
Server Object
Client
Request
Response
ASPError Object
11
ASP Performance Graphs
12
ASP Conclusion
  • Completely embedded with HTML, Script
  • No manually Compiling
  • Object Oriented and can expand function of
    ActiveX
  • Server Component
  • Browser Compliant
  • Code hiding
  • Easily coding
  • Efficiency
Write a Comment
User Comments (0)
About PowerShow.com