Overview of ASP Objects - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

Overview of ASP Objects

Description:

First, the process for all scripting objects. Must call CreateObject method ... 'bgcolor', 'maroon' 'text', 'blue' Creates collection ... – PowerPoint PPT presentation

Number of Views:757
Avg rating:3.0/5.0
Slides: 10
Provided by: Econ82
Category:

less

Transcript and Presenter's Notes

Title: Overview of ASP Objects


1
Overview of ASP Objects
  • MIS 3353 -- Web Site Development

2
The Err Object
  • Properties
  • Number
  • Description
  • Source (place where error occurred)
  • HelpFile
  • Methods
  • Clear
  • Raise (generates an error)
  • Note On Error Resume Next (helpful for
    debugging)

3
Scripting Objects Generally Available
  • Dictionary (dynamic storage/retrieval)
  • Hard drive info and manipulation
  • FileSystemObject
  • Drive/Drives
  • Folder/Folders
  • File/Files
  • TextStream (create and read text files)
  • ScriptEngine

4
Dictionary Object
  • First, the process for all scripting objects
  • Must call CreateObject method
  • Argument is an object calling an object
  • Scripting
  • Dictionary (or FileSystemObject or . . . )
  • Example
  • Set var1 CreateObject(Scripting.Dictionary)

5
Dictionary Applications
  • HTML form controls and their values
  • txtPrice, 150
  • btnSubmit, Click Me!
  • Preference items
  • bgcolor, maroon
  • text, blue
  • Creates collection
  • Methods and properties Keys, Count, Item,
    Exists, Add

6
FileSystemObject
  • Used to manipulate information about files,
    folders, drives, etc.
  • Methods and properties Drive, Drives,
    DriveLetter, IsReady,
  • Drives is a collection

7
Server Objects
  • ActiveX objects
  • Server
  • Application
  • Session
  • Request (information from client browser)
  • Response (information sent to client browser)
  • Same, regardless of scripting language

8
Web Servers
  • Microsoft
  • IIS
  • PWS
  • Other Apache, . . . ?
  • ASP needs Microsoft (or patches)
  • Create server objects automatically

9
Basic Server Objects
  • Request
  • Form collection (methodPOST)
  • QueryString collection (methodGET)
  • Cookie collection
  • Response
Write a Comment
User Comments (0)
About PowerShow.com