Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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

2 Quit 9.2 Chapter 9 Objectives  Design a Web-based client/server application for checking class registration  Develop a database for student class registration  Create a system DSN on the Web server  Understand VBScript programming in ASP  Write the application with HTML and ASP  Post, test and manage the application

3 Quit 9.3 Five Design Issues Needs Assessment Security Design Server Installation Database Design Client/Server Interface Design

4 Quit 9.4 Needs Assessment  Purpose: develop an application that will provide students with access to registration information without time and distance barriers  Needs: Dynamically connected to school’s database Dynamically connected to school’s database Students can view or print their registration status Students can view or print their registration status

5 Quit 9.5 Security Design  Purpose: keep student information private and confidential  Needs: Require user name and password for access Require user name and password for access Use individual students IDs Use individual students IDs

6 Quit 9.6 Server Installation  Purpose: create a local intranet to connect to the Internet  Needs: Install a Web server on your computer Install a Web server on your computer Create a file folder in the personal Web server directory called studentservice Create a file folder in the personal Web server directory called studentservice studentservice will host all files for this application studentservice will host all files for this application

7 Quit 9.7 Database Design  Purpose: gather information from and send information to users in a secure manner  Needs: Develop and install a Web-enabled database Develop and install a Web-enabled database Create student.mdb database file with two data tables Create student.mdb database file with two data tables User – keeps user name and passwords User – keeps user name and passwords Student – stores campus registration information Student – stores campus registration information Create a system DSN Create a system DSN

8 Quit 9.8 Interface Design  Purpose: allow students to access secure registration information on the Web from any Internet- connected client computer  Needs: Login security page Login security page Check1.ASP file Check1.ASP file Request.htm file Request.htm file Results.asp file Results.asp file

9 Quit 9.9 Summary of Files Needed Save in the folder of the Web server Save in the studentservice folder of the Web server student.mdb Web-enabled database file login.htm Login security page request.htm Fill-in form User and PW check1.asp Security check file results.asp Enter student ID

10 Quit 9.10 VBScript in ASP Files  Components of ASP files  VBScript fundamentals  Basic SQL statements

11 Quit 9.11 Components of ASP Files  Language-independent application technology  Created with a combination of: HTML tags HTML tags Text Text Script Script SQL statements SQL statements  Delimiters  Delimiters  Server-side script  Saved with.ASP extension

12 Quit 9.12 VBScript Fundamentals  Primary default scripting language of ASP  Member of the Visual Basic family  Fundamentals: Variables Variables Constants Constants Operators Operators Statements Statements

13 Quit 9.13 VBScript Variables  Symbolic name  Use to declare or store information that may change during run time of script  Stores user name and password variables

14 Quit 9.14 VBScript Constants  A number or string of text that never changes  Intrinsic constants Color Color Comparison Comparison Date and time Date and time  Create constants with the const statement

15 Quit 9.15 VBScript Operators  Types Arithmetic – calculation Arithmetic – calculation Comparison Comparison Logical Logical Concatenation Concatenation  Precedence of operators Order of evaluation: arithmetic, comparison, logical Order of evaluation: arithmetic, comparison, logical Comparison operators have equal precedence (evaluated left to right) Comparison operators have equal precedence (evaluated left to right) Arithmetic evaluation order ^ * / + - Arithmetic evaluation order ^ * / + - Parentheses override precedence Parentheses override precedence Inside parentheses performed first Inside parentheses performed first

16 Quit 9.16 VBScript Statements  Set statement Assigns object reference to a variable  If... Then... Else statement Conditional Executes if a specified condition is true or false  Do... Loop statement Runs a block of statements repeatedly while a condition is true or until a condition becomes true  For Each... Next statement Runs a group of statements repeatedly for each item in a collection  Date/Time function  Comments

17 Quit 9.17 Basic SQL Statements  Enable client/server application to communicate with databases  Select statement Used to retrieve records and fields from a data table Used to retrieve records and fields from a data table  Where clause Used to limit records selection Used to limit records selection

18 Quit 9.18 Chapter 9 Summary  Five Design Issues  Summary of Files Needed  VBScript in ASP Files  Components of ASP Files  VBScript Fundamentals VBScript Variables VBScript Variables VBScript Constants VBScript Constants VBScript Operators VBScript Operators VBScript Statements VBScript Statements  Basic SQL Statements

19 Web Design and Development for E-Business By Jensen J. Zhao Copyright 2003 Prentice Hall, Inc. Developing a Web-Based Application for Student Class Registration The End


Download ppt "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."

Similar presentations


Ads by Google