Object Model Introduction - E-Commerce - Lecture Slides, Slides of Fundamentals of E-Commerce

E-Commerce is a growing and dynamic field. It is of special concern for the IT students. Following are the fundamental aspects of these Lecture Slides : Object Model, Language, Runat, Cript, Body, Programming Language, Scripting Languages, Model Provides, Complexities, Server Programming

Typology: Slides

2012/2013

Uploaded on 07/30/2013

ekyan
ekyan 🇮🇳

4.7

(10)

138 documents

1 / 14

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Server-Side Web Programming
with Active Server Pages
Basic ASP Output
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Object Model Introduction - E-Commerce - Lecture Slides and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

Server-Side Web Programming

with Active Server Pages

Basic ASP Output

ASP Object Model Introduction Client

ServerObject Server

Application

Object SessionObject

Response Object^ Request Object Object Context Object

ASP Processing

-^

IIS receives HTTP request from client.

-^

IIS retrieves files from disk or memory.

-^

If .asp or .asa file, passed to ASP.dll

-^

Perform pre-processing directives (scriptinglanguages, transactions)

-^

ASP.dll checks syntax (IIS 5)

-^

ASP.dll interprets code and renders content

-^

ASP passes output to IIS, which passes to client.

Response Object Overview

  • Definition
    • The response object provides various facilitiesfor sending content to the client
      • Example
        • Create a paragraph that says Moo!

Response.Write "

Moo!

"

  • Create the expiration meta element to expire in5 minutes.

Response.expires = 5

Demo - 1

"Hello World" <%@ language=VBScript

Hello World<%

Response.Write "Hello World"

%>

language=VBScript

<% Dim

I^

'Loop

Counter

Dim

iSum

'Sum

of

the

numbers

%> Sums<

/title

"

&^
CSTR(I)
&^

""

iSum

=^

iSum

+^
I

Nextresponse.write

""

&^

CSTR(iSum)

&^

""

%>

Flow Control

Response.End•^

Stop any further processing of page and send thecurrent buffer to the client. Response.Clear•^

Clear the existing buffer contents. Nothing sent toclient. Response.Flush•^

Send the current buffer to the client now.

Flow Control

Response.Redirect•^

Redirects the client's request to another URL.

-^

MUST use buffering (response.buffer=true) to usethis method.

-^

Note this sends a HTTP response to client.

-^

IIS 5 has new methods for dealing with this.

Response.Redirect

"http://valtara.com"

Cookies Collection Introduction • We will discuss this in detail in another class.• A cookie is a small piece of information the servercan write to and read from the client. It is handy toimplement visitor identity and preferences.• The cookies collection of the response object is usedto CREATE/UPDATE cookies on the client.• If the client does not accept cookies, the informationis discarded by the client.• The Request object has a complementary object toFETCH cookies from the client.

ASP Template

<%@ language=VBScript

%>

<%^

option explicit

%>

<% 'Server-side includes go here %><%'Filename:'Purpose:'Arguments:'Author:'Revised:'Declarations and bufferingConstantsDimsInitial values%>Title