web application development with active server pages david henson dhenson@certifiednetworks.com

Post on 18-Jan-2016

216 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Web Application Developmentwith

Active Server Pages

David Henson

dhenson@certifiednetworks.com

http://www.certifiednetworks.com

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 – Email 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

• <TABLE></TABLE>

• <TR></TR>

• <TD></TD>

• <FORM></FORM>

• <META>

• <BODY></BODY>

• <BR>

• <P></P>

• <B>

• <FONT>

Common ASP Tags

• <SCRIPT RUNAT=“Server”> </SCRIPT>

• <% %>– <%=variable%>

Common VBScript Syntax

• Set

• If…then

• While

• String Manipulation-– Left(string, 4)

– Right(string, 4)

– Mid(string, 4, 2)

Server Side Includes

• <!--#Include file=“CheckVars.asp”-->

• <!--#Include virtual=“CheckVars.asp”-->

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

FormsDemo.asp

<%

If not request(“somedata”) = “” then

response.write(“The data is:” & somedata & “<br>”)

end if

%>

<FORM ACTION=“Demo.asp” METHOD=“POST”>

<input type=“text” name=“somedata”>

<input type=“submit”>

</FORM>

Hidden Inputs

<input type=“hidden” name=“test” value= “<%=request(“test”)%>” >

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 – Email Communication

Module 9 – Logging Visitors

Module 10 – Dealing with browsers

Module 11 – OLE Automation with Excel and Other Objects

Module 12 - XML

top related