Web Application Development with Active Server Pages David Henson
Introduction
Class Logistics 7 Meetings Class Hours – 6:30 to 9:30 2 Short Breaks Per Night Book: Alex Homer’s Professional ASP 3.0 Web Techniques – WROX Press Handouts
Classroom Setup NT4 IIS SQL7 MDAC 2.5 Internet Explorer 5
Course Overview Definitions Module 1 – Overview Module 2 – Structure of ASP Module 3 – Browser/Server Communication Module 4 – Database Connectivity Module 5 – Updating Data
Course Overview, Contd. Module 6 – Advanced SQL7 Techniques for Dynamic Sites Module 7 – Security Module 8 – Communication Module 9 – Logging Visits Module 10 – Dealing with Browsers
Course Overview, Contd. Module 11 – OLE Automation Module 12 – XML
Definitions ASP IIS SQL HTML HTTP SSL Tags Browser IP Address ADO OLE/DB COM GUID
Module 1 – Overview Client Server Communication On the Back End On the Front End Software Configuration Networking
Client Server Communication
On the Back End Many Available Options: –UNIX/LINUX, NT –Apache, IIS –ASP, Perl, PHP, C++, VB
On the Front End Internet Explorer Netscape Others PDAs – Palm Pilot, Windows CE Cell Phones, Voice Mail Gateway Crawler, Spider, Other Automated Engines
Software Configuration Common Settings for IIS –Virtual Server –Virtual Site with host headers Common Settings for NT/Windows 2000 –Securing Data with NTFS
Networking Name Resolution –DNS, WINS, LMHOSTS Mapping Drives FTP
Module 2 – Structure of ASP HTML Tags ASP Tags Server Side Includes Intrinsic Objects –Request, Response, Server, Application, Session Demonstration – Structure of ASP
Common HTML Tags
Common ASP Tags –
Common VBScript Syntax Set If…then While String Manipulation- –Left(string, 4) –Right(string, 4) –Mid(string, 4, 2)
Server Side Includes
Intrinsic Objects Application Response Server Session Request ObjectContext
Demonstration – ASP Structure
Module 3 – Communicating Between Browser and Server Forms Hidden Inputs Request Object Application Object Session Object Other Objects Lab – Browser/Server Communication
Forms Demo.asp <% If not request(“somedata”) = “” then response.write(“The data is:” & somedata & “ ”) end if %>
Hidden Inputs ” >
Request Object Exposes for use: –Form Data –Href parameters
Application Object Starts up when the first user hits the site Ends when the server is shut down
Session Object Relies on cookies Makes information persistent between pages Can be troublesome: –DNS Round Robin –Load Balancing –Timeout, Cookies not allowed by browser
Session Example … Session(“userid”) = request(“userid”) …
Module 4 – Database Connectivity
Module 5 – Updating Data
Module 6 – Advanced SQL 7 Techniques
Lab – Browser/Server Communication
Module 7 – Security
Module 8 – Communication
Module 9 – Logging Visitors
Module 10 – Dealing with browsers
Module 11 – OLE Automation with Excel and Other Objects
Module 12 - XML