Active Server Pages - Overview

Active Server Pages - Overview - Microsoft Active Server...

Info iconThis preview shows pages 1–15. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Microsoft Active Server Pages Introduction to Active Server Pages Microsoft version of server-side JavaScript Exists at the processing tier and executes according to client requests Supports JavaScript (Jscript), VBScript Interpreters also available for Perl, REXX and Python What is ASP? A ctive S erver P ages A series of objects and components that are executed on the web server Uses a suite of technologies that allows dynamically-generated content Control of how content is generated from the server to the browsers HTML Page Execution You Request an HTML Page www.ocstc.org/resumes.htm Server finds and downloads the page Browser displays the page ASP Page Execution You Request an ASP Page www.ocstc.org/default.asp Server finds the page Browser displays the page Server executes ASP commands, converts ASP to HTML/XML as needed, processes HTML/XML ASP Compared to Other Scripting Languages ASP and /PHP/Perl/CGI execution are roughly equivalent in execution sequence Compared to VBScript, ASP does not have to worry about browser incompatibility Compared to JavaScript, dont have to worry about browser versions or disabling Compared to Java, dont have to worry about whether JRE (or MVM) is installed ASP and XML ASP can control the XML experience from beginning to end Controls the output for conflicting browsers Generate XML data Logically connect XML and standalone databases Control data output formatting that XML or HTML cannot control ASP Object Model ASP itself is not Object-Oriented. ASP can use objects but cannot define new objects Composed of 5 objects 5 components ASP Objects Request Response Server Application Session ASP Components Scripting Objects Component ADO (ActiveX Data Objects) Component Ad Rotator Component Browser Capabilities Component Content Linking Component ASP Object Model YOU Request Server Response ASP.DLL (if it finds <%%>, invokes Scripting Objects Component) Session Application Microsoft Active Server Pages Creating ASP Applications ASP applications are created in files with a .asp file extension Server compiles .asp file when it is requested Regardless of whether or not it contains JavaScript Place only code that contains scripts in .asp file Keep HTML-only code in .html files Microsoft Active Server Pages Creating ASP Applications Server-Side Scripts Delimiter Character or sequence of characters used to mark the beginning and end of a code segment ASP uses <% %> instead of server tags to designate server- side JavaScript code Can also be used within an HTML tag Example <% Response.Write(Hello World); %> Microsoft Active Server Pages Creating ASP Applications Server-Side Scripts Properties in ASP are stored in data structures known as collections rather than object properties RUNAT=SERVER attribute Forces a <script></script> tag pair to be run on the server rather than the client Can include any server-side JavaScript objects and methods Microsoft Active Server Pages...
View Full Document

Page1 / 70

Active Server Pages - Overview - Microsoft Active Server...

This preview shows document pages 1 - 15. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online