4/8/99 C. Edward Chow Page 1 Active Server Page It is a server-side scripting environment for creating dynamic content. ASP are files with.asp extension,

Slides:



Advertisements
Similar presentations
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Advertisements

Creating a Login Process Creating a users table and a login form that denies access to unauthorized users.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
CIS 375—Web App Dev II ADO I. 2 Introduction ADO (________ Data Objects) is a Microsoft technology for accessing data in a database. ADO is automatically.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Server Side Programming ASP1 Server Side Programming Database Integration Peter O’Grady.
1 Chapter 12 Working With Access 2000 on the Internet.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Creating a Users Table The users table contains a list of your site’s authorized users, logins, and passwords.
Access Tutorial 1 Creating a Database
1 Active Server Pages Active Server Pages (ASPs) are Web pages ASP = server-side scripts + HTML The appearance of an Active Server Page depends on who.
Connecting a Database to a Web Application Professor Stephen K. Kwan.
4/8/99 C. Edward Chow Page 1 Internet Services Manager Click Start | Programs | Administrative Tools | Internet Services Manager.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
2/22/00J. Alberto Espinosa -- CMU/GSIA MIS Dynamic HTML Using Active Server Pages (ASP) Alberto Espinosa MIS
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
PHP Programming. Topics Background and History of PHP Installation Comments in PHP Variables Conditions Loops Functions File Handling Database Handling.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
MSSQL & ASP. Client-Server Relationship Client-Server Relationship HTML Basics HTML Basics Scripting Basics Scripting Basics Examples Examples.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Interacting With Data Databases.
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
ADO Connect Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
1998 PI System Users’ Conference PI on the Web: A Primer for PI Users Omicron Consulting 1998 PI System Users’ Conference.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Creating a Survey Using Dreamweaver’s Record Insertion Form Wizard.
Creating a Web Site to Gather Data and Conduct Research.
WB_FrontPage_How To CS3505. Front Page 4 Microsoft Web Page Authoring tool 4 Available to students at no charge see helpdesk 4 Provides support for building.
© Michelle C. Heckman All Rights Reserved. v6.0 Dreamweaver “UltraDev” CS125UDF This course qualifies as a CAS Web Master Related Elective.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Web Design and Development for E-Business By Jensen J. Zhao Copyright 2003 Prentice Hall, Inc. Web Design and Development for E-Business Jensen J. Zhao.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
How to Connect to Database ODBC (Open Database Connectivity) ADO (ActiveX Data Object) ASP Code To Connect to Database Recordset Object Navigating through.
This is the first screen you will encounter. Select Blank Database.
® Microsoft Office 2013 Access Creating a Database.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Server Side Programming ASP1 Server Side Programming.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Database Connectivity What is ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a Microsoft Active-X component.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
Database Connectivity and Server-Side Scripting Chapter 12.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
Chapter 5 Building Your Product Catalog database Objectives Create Database. Create Table. Connect to Database. Use ASP Script to add new products. Use.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
, MS-Access, QBE, Access/Oracle
Access Tutorial 1 Creating a Database
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
Creating and Using a Database
Access Tutorial 1 Creating a Database
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Access Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

4/8/99 C. Edward Chow Page 1 Active Server Page It is a server-side scripting environment for creating dynamic content. ASP are files with.asp extension, containing HTML tags, text, and script commands. Provides an “easy-to-use” alternative to CGI and ISAPI. Allow content developers to embed any ActiveX script language or server component into their HTML pages. Tutorial available through option pack menu. Provide access to ODBC (Open Data Base Connectivity) connector. Typical VBscript (Visual Basic Scripting Edition) is used to provide dynamic content. MS JScript.

4/8/99 C. Edward Chow Page 2 Create ASP with DB access Create an Signup MS Access Database, signup.mdb on the NT workstation right by Bilbo. Transfer the signup.mdb to the c:\cs401\scripts directory on Frodo NT server. Setup ODBC system Data Source Name for the signup.mdb. Create a virtual directory with aliase cs401scripts with physical path c:\cs401\scripts using MS management console. Create a search.htm web page using FrongPage or other editor. It asks for the last name in a form and submit the request to retrieve the whole record of the signup database. Put the search.htm in c:\cs401\www. Create a virtual directory with alias cs401www with physical path c:\cs401\www using MS management console. Create an Active Server Page, response.asp, which o uses VBscript to retrieve the last name from the form input, o accesses the signup database for the record o return a web page in a table format with all the record with last name matching the input.

4/8/99 C. Edward Chow Page 3 Create a signup MS Access Database  Select Start | Programs | Microsoft Access  Click the "Blank Database" in "Creating a New Database Using" pane. Click OK.  Enter "cs401signup" as the file name for the database. Click Create.  In the table tab (default) of the cs401signup database window, click New.  In new Table, click the Design View and click OK.  Enter the field names (LastName, FirstName, and Address) of the table. You can change the field size.  Save the table name as signup (default is table1).

4/8/99 C. Edward Chow Page 4 Create Database

4/8/99 C. Edward Chow Page 5 Specify Field names

4/8/99 C. Edward Chow Page 6 Create table for the DB Click x icon on the upper right corner. Click Yes to confirm saving the table. Enter “signup” as the table name. Click No on creating primary key. It shows the signup table was created. Double click it or click open. Enter several entries of the table.

4/8/99 C. Edward Chow Page 7 Setup ODBC on NT Server Click ODBC Data Sources on control panel.

4/8/99 C. Edward Chow Page 8 Add MS Access DB Click System DSN and Add. Select MS Access Driver (*.mdb). Click Finish.

4/8/99 C. Edward Chow Page 9 ODBC MS Access Setup Enter Data Source Name (cs401signup) Enter Description as (cs401 asp DB) Click Select on Database pane and select the e:\cs401\scripts\cs401signup.mdb

4/8/99 C. Edward Chow Page 10 Create Script Virtual Directory Select Start | Programs | NT 4.0 option pack | MS IIS | IIS manager Select Frodo, default web site Select the action menu | new | virtual server Enter alias as cs401scripts Enter/browse physical path c:\cs401\scripts Check only the “Allow execute access.” Click Finish.

4/8/99 C. Edward Chow Page 11 Create Query Form Web Page Create a signup DB search web page with form input. It asks for the last name in a form and submit the request to retrieve the whole record of the signup database. LastName: Put the search.htm in c:\cs401\www.

4/8/99 C. Edward Chow Page 12 cs401www Virtual Directory Follow the same step to create the cs401www virtual directory with cs401www as alias and c:\cs401\www as physical directory. Create an Active Server Page, response.asp, which – uses VBscript to retrieve the last name from the form input, – accesses the signup database for the record – return a web page in a table format with all the record with last name matching the input.

4/8/99 C. Edward Chow Page 13 Response.asp <% ' ON ERROR RESUME NEXT Set Conn = Server.CreateObject("ADODB.Connection") Set RS = Server.CreateObject("ADODB.RecordSet") Conn.Open “cs401signup" key = Request.Form("LastName") sql="select * from cs401signup where LastName='" & key &"'" RS.open sql,conn,1,1 %>

4/8/99 C. Edward Chow Page 14 Response.asp (2) signup response.asp File <% IF RS.RECORDCOUNT = 0 THEN %> No match result

4/8/99 C. Edward Chow Page 15 Response.asp (3) <% RS.MoveNext Loop %>

4/8/99 C. Edward Chow Page 16 Response.asp (4) <% rs.close set conn=nothing %>