ACTIVE SERVER PAGES Presenting By ---------- 12########### Under the Guidance of #########
Active server pages ASP is a powerful tool for making dynamic and interactive web pages. Developing functionality in ASP websites is enabled by the active scripting engine’s support of the component object model(com ), Active Server Pages(ASP)is a server side scripting environment that you can use to create and run dynamic. ABSTRACT
INTRODUCTION An ASP file normally contains HTML tags just as a standard HTML file. Server receives request and directs it to ASP. ASP processes , then returns result to client. Pages are processed by an ActiveX Component, called scripting engine.
ASP were Introduced in July 1996 Bundled with Internet Information Server (IIS) 3.0 in March 1997 ASP 2.0 introduced in 1998 Shipped with IIS 4.0 AS 3.0 shipped as part of Windows 2000 IIS 5.0 IIS 5.0 Includes ASP , VBScript engine , Jscript engine HISTORY
PROCESSING OF ASP PAGE Browser Request Web server HTML File Processing Memory_ ASP file
Generates dynamic web pages Processes the contents of HTML forms Creates database driven web pages Create searchable web pages & send E-MAIL Components of Web site includes server side components created with Visual Basic ,C++ or Java. ASP CAPABILITIES
Commonly used for Interactivity. Browser-dependent. Viewable on client (Protecting source code). Reduces the number of requests the server receives. CLIENT SIDE SCRIPTING
Greater flexibility . Generate response for client. Run exclusively on server . Not visible to client . SERVER SIDE SCRIPTING
Client-side-script is embedded into the HTML file using tags: <script language =“Java script/ VB Script”> {Java script/VBS code} </script> Server-side-script is embedded into the ASP file using tags: <script language=VB script/java script RunAt SERVER=server> {VB script/java script code } </script> ASP SYNTAX
Naming variables in VBScript Contain 255 characters Must begin with an alphabetical Not case-sensitive ASP VARIABLES
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/comtutorial.asp ASP OBJECTS
An HTTP document can contain both client-side script (e.g., JavaScript) and server-side script (e.g., VBScript) CLIENT & SERVER
Request methods GET Gets information from server Retrieve HTML document or image Send form content as part of the URL POST S ends data to server Send info from HTML form 14 HTTP TYPES
The session object is used to store information about each user. Common information stored in session variables are user’s name , id and preferences. The server creates a new session object for each new user. Destroy the session object when the session expires or user logout . ASP SESSION
ASP technology is a server side programming developed to enable dynamic web pages. ASP developers can create a dynamic web page and make use of database access. conclusion