Docsity

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

Partial preview of the text

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

ASP Sample -

ASP Example

/title

ASP Sample -

ASP Example

/title

ASP in Action

From Prof. Server Pages (WROX) p. 83

Client

Response^ Request ObjectContext

ServerObject ApplicationObject SessionObject

ASP is Language Neutral

-^ ASP can be programmed using many languages.•^ Microsoft's VBScript and JScript ship with IIS.•^ ASP assumes VBScript unless otherwise indicated.Best practice is to always specify. - Set a page default

<%@ LANGUAGE=VBSCRIPT%>

  • Change default on a per-script basis

ASP Benefits

-^ Relatively simple programming model.•^ Can script in many different languages.•^ Server-side functionality allows creation of"browser neutral" web pages.•^ Mixed HTML/Script works well for web-orienteddevelopers.•^ Ported to many non-Microsoft platforms.

ASP Benefits (continued)

-^ No design-time compiling - Fixes/enhancementsavailable immediately.•^ VBScript language leverages VB skills.•^ Scales very well to moderate-sized sites.•^ Used by many developers--many help resources.•^ Free with NT Server.

ASP Web Applications Challenges •^ Managing database connections - connectionpooling.•^ Maintaining user state information.•^ Minimizing server resources to maximizescalability.•^ Building apps that will last.

ASP Intrinsic Objects

-^ Request - Exposes what client sent to server.•^ Response - Collects output back to client.•^ Application - Represents the ASP page itself.•^ Session - represents a continuity of connection.•^ Server - provides services to the application.•^ ObjectContext - For MTX and transactions.