Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
1 Chapter 12 Working With Access 2000 on the Internet.
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.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
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,
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
4/8/99 C. Edward Chow Page 1 Internet Services Manager Click Start | Programs | Administrative Tools | Internet Services Manager.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
ODBC and JDBC What are they – libraries of function calls that support SQL statements Why do we need them –Provide a way for an application to communicate.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
Server-side Scripting Powering the webs favourite services.
Interacting With Data Week 8 Connecting to the database Creating recordsets Interacting with the database.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
ADO Connect Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
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.
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 9 Slide 1 IT 390 Business Database Administration Unit 9:
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 33 - Active Server Pages (ASP) Outline 33.1 Introduction 33.2 How Active Server Pages Work 33.3.
3/8/00asp00 1 Active Server Pages from Microsoft Nancy McCracken Northeast Parallel Architectures Center at Syracuse.
Active Server Pages (ASP) 1. 2 Introduction Active Server Pages (ASP) –Server-side text file –Processed in response to client request –Pages are processed.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
© 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.
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
2-1 WEB DATABSE INTERFACING Colorado Technical University IT420.
Introduction to ADO Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
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.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
How to Connect to Database ODBC (Open Database Connectivity) ADO (ActiveX Data Object) ASP Code To Connect to Database Recordset Object Navigating through.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
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.
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Chapter 5 Building Your Product Catalog database Objectives Create Database. Create Table. Connect to Database. Use ASP Script to add new products. Use.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Section 6.3 Server-side Scripting
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
PHP / MySQL Introduction
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Presentation transcript:

Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10

Tutorial 10 by Samine1020 Introduction to Internet Engineering2 Creating Database ► Microsoft Access Example  Create a blank database  Create a table in database

Tutorial 10 by Samine1020 Introduction to Internet Engineering3 Creating Database ► Setting attribute

Tutorial 10 by Samine1020 Introduction to Internet Engineering4 Creating Database ► Setting primary key

Tutorial 10 by Samine1020 Introduction to Internet Engineering5 Query Database

Tutorial 10 by Samine1020 Introduction to Internet Engineering6 Query Database - Design View

Tutorial 10 by Samine1020 Introduction to Internet Engineering7 Query Database – Design View

Tutorial 10 by Samine1020 Introduction to Internet Engineering8 Query Database – SQL

Tutorial 10 by Samine1020 Introduction to Internet Engineering9 Database Access ► Microsoft Universal Data Access (UDA)  Easy to use programming interface  Access for relational & non-relational database Application or Browser ADO ODBC OLE DB Relational data sources Non-relational data sources Mainframe/legacy data

Tutorial 10 by Samine1020 Introduction to Internet Engineering10 Database Access ► OLE DB (Object Linking and Ebedding DB)  Open specification  Core architecture Application or Browser ADO ODBC OLE DB Relational data sources Non-relational data sources Mainframe/legacy data

Tutorial 10 by Samine1020 Introduction to Internet Engineering11 Database Access ► ODBC (Open Database Connectivity)  Access data from a variety of DBMS through a single interface Application or Browser ADO ODBC OLE DB Relational data sources Non-relational data sources Mainframe/legacy data

Tutorial 10 by Samine1020 Introduction to Internet Engineering12 Database Access ► ADO (ActiveX Data Objects)  Ease to use, high performance, low memory overhead Application or Browser ADO ODBC OLE DB Relational data sources Non-relational data sources Mainframe/legacy data

Tutorial 10 by Samine1020 Introduction to Internet Engineering13 Registering a Database ► Specific instructions for Windows 98/2000/XP:  double-click the ODBC Data Sources (32 bit) icon in the Windows Control Panel to display the ODBC Data Source Administrator dialog. - Click the System DSN tab to view a list of all systems DSNs. - Select the name to the right of Microsoft Access Driver (*.mdb) from the list.

Tutorial 10 by Samine1020 Introduction to Internet Engineering14 Registering a Database  Click Add … to display the Create New Data Source dialog. Select Microsoft Access Driver (*.mdb) and click Finish to display the ODBC Microsoft Access Setup dialog.

Tutorial 10 by Samine1020 Introduction to Internet Engineering15 Registering a Database  Enter the Data Source Name and Description field. Click the Select … button to display the Select Database dialog. Select the database that you want. Click OK to close this dialog.

Tutorial 10 by Samine1020 Introduction to Internet Engineering16 Registering a Database

Tutorial 10 by Samine1020 Introduction to Internet Engineering17 Registering a Database  The Banking DSN is now listed.

Tutorial 10 by Samine1020 Introduction to Internet Engineering18 Active Server Pages (ASP) ► Server-side scripting  ASP file contains HTML and scripting code  VBScript de facto language for ASP scripting ► Other languages can be used  JavaScript .asp file extension  Send dynamic Web content ► HTML ► DHTML ► ActiveX controls ► Client-side scripts ► Java applets

Tutorial 10 by Samine1020 Introduction to Internet Engineering19 Active Server Pages (ASP) ► ASP requires  Web server ► Personal Web Server (PWS) ► Internet Information Server (IIS) ► How ASP works ?  Client sends request ► Server receives request and directs it to ASP ► ASP processes, then returns result to client  Server processes ASP file ► Parsed (top to bottom) by ActiveX component asp.dll ► Parsed each time requested ► Web server must support ASP by providing component such as asp.dll

Tutorial 10 by Samine1020 Introduction to Internet Engineering20 Active Server Pages (ASP) ► ASP has several built-in objects  Request object ► Access information passed by HTTP GET or POST ► Used to access cookies  Response object ► Sends information such as HTML or text to client  Server object ► Provides access to server methods and properties ► Provides method CreateObject  Used to instantiate other objects

Tutorial 10 by Samine1020 Introduction to Internet Engineering21 Active Server Pages (ASP) ► Scripting delimiters    Indicate code is to be executed on server, not client  Specify scripting language (default VBScript)   ► Each time page refreshed, server loads and interprets ASP

Tutorial 10 by Samine1020 Introduction to Internet Engineering22 ASP/ADO Data.html Sample Database Query Querying an ODBC database. <INPUT TYPE = "TEXT" NAME = "QUERY" SIZE = 40 VALUE = "SELECT * FROM Info">

Tutorial 10 by Samine1020 Introduction to Internet Engineering23 ASP/ADO Data.asp The result of querying an ODBC database <% ' Open a database connection Set connection = Server.CreateObject( "ADODB.Connection" ) connection.Open( "db2" ) ' Open a record set Set recorderset = Server.CreateObject( "ADODB.RecordSet" ) recorderset.ActiveConnection=connection recorderset.Source=query recorderset.Open%> <% ' Iterate through the record set and create a new row ' in the table for each record While Not recorderset.EOF %> <% recorderset.MoveNext() Wend ' Close the record set and the connection recorderset.Close() connection.close() %>

Tutorial 10 by Samine1020 Introduction to Internet Engineering24 ASP / ADO

Tutorial 10 by Samine1020 Introduction to Internet Engineering25 Dreamweaver MX ► Database Window

Tutorial 10 by Samine1020 Introduction to Internet Engineering26 Dreamweaver MX ► Recordset

Tutorial 10 by Samine1020 Introduction to Internet Engineering27 Dreamweaver MX ► Server Behaviors  Repeat regions  Dynamic text