Download presentation
Presentation is loading. Please wait.
Published byJeremy Williamson Modified over 8 years ago
1
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson
2
7-2 Active X Scripting IIS provides built in support for the following: –Visual Basic Scripting Edition –VBScript –Microsoft’s JScript compatible scripting engine –JScript
3
7-3 ASP Files ASP files always end in.asp and can contain: –HTML –ActiveX Scripting Code –VBScript Code –JScript Code –or a combination of the above. Default scripting language is VBScript
4
7-4 Active Server Framework ActiveX - also know as OLE Automation Servers. Active Desktop - Supports ActiveX controls as well as Java applets. Active Server - Server component of the Active platform.
5
7-5 ASP Objects ASP consists of five objects: –Application object –Session object –Request object –Response object –Server object
6
7-6 Application Object Used to manage applications Stores information for server side scripting. Data stored in this object is global. Methods provided are: –Lock –Unlock Events available are: –onStart –onEnd
7
7-7 Session Object Session object shares data only between pages. Session objects have three properties: –SessionID –Timeout –Value Session events also consist of: –onStart –OnEnd The only method available to this object is “Abandon”
8
7-8 Request object Provides info about a user’s request. This object consists of five variable collections that are read only. They are: –Cookies –ClientCertificate –Form –QueryString –ServerVariables
9
7-9 Response Object This is concerned with sending information to the client. The response object consists of five properties and eight methods.
10
7-10 Server Object All other objects center around the Server object. This object has a single property. –ScriptTimeout - Length of time a script can run before it is terminated. Object methods are as follows: –CreateObject –HTMLEncode –MapPath –URLEncode
11
7-11 Active Server Components There are many components that come with Active Server. AdRotator Browser Capabilities Content Linking Database Access Text Stream
12
7-12 Component object Module (COM) COM is an object based specification. Distributed COM (DCOM) allows components to work together in a distributed environment
13
7-13 OLE DB ODBC allows you to connect to various databases using on access methodology. OLE DB has two main parts: –Data Provider –Data Consumer
14
7-14 ActiveX Data Objects (ADO) ADO works with OLE DB to supply a methodology for manipulating data. Many programming languages can make use of ADO. ADO characteristics: –Objects are independently instantiable instead of a hierarchy of objects.
15
7-15 ADO Characteristics –Allows customization of objects by developers. –Is a specification for a set of objects. –Can be batch updated. –Can be used to filter records. –Can interface to server side stored procedures. –Supports queries that return multiple ResultSets. –Supports various record cursor types.
16
7-16 ADO Objects ADO objects can be created using the HTML tag. ADO objects are as follows: –Connection –Recordset –Command –Field –Parameter
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.