Active Server Pages - PowerPoint PPT Presentation

Loading...

PPT – Active Server Pages PowerPoint presentation | free to download - id: ded29-ZDc1Z



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

Active Server Pages

Description:

SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT ... VBScript tagged within SCRIPT tags. A sample (from ASP text) ... variables in VBScript. 255 characters. Must ... – PowerPoint PPT presentation

Number of Views:71
Avg rating:3.0/5.0
Slides: 17
Provided by: alani2
Category:

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: Active Server Pages


1
Active Server Pages
  • Points of Interest
  • Chapters 1-4

2
ASP versus HTML
  • Major differences?
  • What can ASP do that HTML cannot?

3
Active Web Sites
  • ActiveX controls - Visual C or Visual Basic
  • Create a functionality
  • Java
  • Scripting Languages (VBScript, JavaScript)
  • ASP and Dynamic HTML

4
Running ASP
  • PWS, IIS, Chilisoft

5
ASP Pitfalls and Editing
  • Open from the server URL instead of the pathname.
  • What does PU primarily use for an editor?
  • Did people get InterDev 6.0 yet?

6
ASP Objects
  • Request to get information from the user
  • Response to send information to the user
  • Server to control the Internet Information
    Server
  • Application to share application-level
    information and control settings for the lifetime
    of the application
  • Session to store information about and change
    settings for the user's current Web-server
    session
  • ObjectContext (used mostly with MTS)

7
ASP Objects
  • Each set of objects has a set of functions it can
    perform called methods and one or more properties
  • value object.property
  • value object.method()
  • Some newer objects at
  • http//msdn.microsoft.com/workshop/server/asp/comt
    utorial.asp

8
Order of Execution
  • global.asa (Text file with details about an ASP
    application, such as when it should begin and end
    more in CH9)
  • Server-side includes
  • ltSCRIPT RUNATSERVER LANGUAGEVBSCRIPTgt
  • lt!--include file"header.inc"--gt (refers to
    current directory)
  • lt!--include virtual"common/header.inc"--gt
    (refers to root of system)
  • Jscript/JavaScript tagged within ltSCRIPTgt
  • HTML with Scripts tagged within lt gt
  • VBScript tagged within ltSCRIPTgt tags

9
A sample (from ASP text)
  • Using a form to get information and display it. .
    .

10
Variables
  • Naming variables in VBScript
  • 255 characters
  • Must begin with an alphabetical
  • Must not contain an embedded period
  • Not case-sensitive

11
The Variant
  • All variables in with different data types are of
    one type
  • variant
  • Can use the TypeName () funtion to determine the
    subtype of the variant
  • PieceofString 5
  • WhatTypeofVar TypeName (PieceofString)

12
Conversions
  • Since variants are automatically a subtype when a
    value is assigned to them, sometimes one needs to
    change the subtype
  • Check page 111-112) for functions

13
Some Interesting Items
  • Assignment Operator
  • Number1 2
  • Number1 Number1 1
  • Comparison
  • If Number1 2 Then. . .
  • Concatenating Variants (subtype string)
  • strConcatenate "Helter" "Skelter"
  • strConcatenate2 "Helter" " " "Skelter"
  • Naming Conventions (114)

14
Dim and Option Explicit
  • DIM (aka dimension)
  • Dim ComputerSystem
  • ComputerSystem "Amiga"
  • Option Explicit every variable in the program
    must be explicitly declared in the code before it
    is used.
  • First line in a client-side script
  • Before ltHTMLgt when using server-side ltOption
    Explicitgt

15
Variable Scope
  • Local Variables (122-123)
  • Global Variables (125)
  • lt strGlobal "Global or Script Level
    Variable"gt
  • Private strGlobal (just within script declared)
  • If in client-side ends when script does
  • If in a server-side lt gt should last in ASP
    page/session

16
Arrays and Multi-Dimensional Arrays
  • Declaring
  • Loop
  • Dim and Redim
  • Preserve
  • Multi-dimensional
About PowerShow.com