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.

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

Lecture plan Information retrieval (from week 11)
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
Languages for Dynamic Web Documents
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Server-Side vs. Client-Side Scripting Languages
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.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 1.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
Introduction to Active Server Pages
Introduction to Web Interface Technology (CSE2030)
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Introduction to Web Interface Technology (CSE2030)
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
 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.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Server-side Scripting Powering the webs favourite services.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Data-Enabled Web Sites: Classibooks.com & Internet Database Technologies Colin Fukai April 4, 2000 Gonzaga University.
Introduction to ColdFusion Penn State Web 2001 Conference Brian Panulla Elmwood Media Group, LLC.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Fundamentals of Database Chapter 7 Database Technologies.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Java CGI Lecture notes by Theodoros Anagnostopoulos.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
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.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
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)
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
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.
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.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
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.
ASP Mr. Baha & Dr.Husam Osta  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web Programming Language
Section 6.3 Server-side Scripting
Active Server Pages Computer Science 40S.
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
PHP / MySQL Introduction
Web Development Using ASP .NET
JavaScript.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
IntroductionToPHP Static vs. Dynamic websites
Web Application Development Using PHP
Presentation transcript:

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. Web sites are now able to display updated information on-the-fly and support user interactivity. One can use the same page to display information of thousands of products in a database.

Three tiers of Web Databases To build a Web database, usually we need to use a three-tier model: – Web server – Web application server (middleware), and – Database

How a User Interacts with a Web Database 1.From a Web browser, a user submits a request to the Web server. 2.The Web server passes it onto the middleware 3.The middleware writes the request in SQL queries and sends it to a back-end database. 4.The data retrieved are handed back to the middleware

How a User Interacts with a Web Database 5. The middleware generates a Web page for the data 6. The Web server sends the Web page to the browser 7. The browser displays the Web page to the user

Web Database Connectivity Web-database connectivity takes several different forms: – CGI scripting A custom application is developed using a traditional programming language (such as C++, Python, Perl, or Java) accessed through the Common Gateway Interface (CGI). – Application server Such as ColdFusion or ASP, which works with the Web server that can communicate with databases through ODBC

ASP – Middleware for Windows Platform ASP stands for Active Server Pages ASP is a programming environment that gives the ability to generate dynamic html pages with the help of server side scripting. VBScript is the default scripting language for ASP

ASP – Middleware for Windows Platform An ASP page is almost the same as a HTM or HTML page... the only difference is that an ASP page has the '.asp' extension Active Server Page can include both client side and server side scripts. In an ASP page VBScript is usually used as the server side and Java Script as the client side scripting language

Special Software Needed to Write ASP? You don't need any special software to write an ASP page. An ASP page can be written with any HTML editor... even in Windows Notepad. If you are looking for some special software to write an ASP page, Microsoft Visual InterDev is the best tool.

Special Software Needed to Write ASP? InterDev helps you to easily develop ASP applications because it simplifies the process of developing and debugging ASP applications ASP is browser independent because all the scripting code runs on the server and the browser only gets a normal HTML page as a result of server side scripting.

ASP Compatibility ASP is an engine/program built into Internet Information Server (IIS) / Personal Web Server (PWS) PWS is a smaller - but fully functional - version of IIS To run IIS you must have Windows NT 4.0 or later To run PWS you must have Windows 95 or later

What is an ASP File? An ASP file is just the same as an HTML file An ASP file can contain text, HTML, XML, and scripts Scripts in an ASP file are executed on the server An ASP file has the file extension *.asp

How Does it Work? When a browser requests an HTML file, the server returns the file When a browser requests an ASP file, IIS/ PWS passes the request to the ASP engine The ASP engine reads the ASP file, line by line, and executes the scripts in the file Finally, the ASP file is returned to the browser as plain HTML

What Can be Done with ASP Dynamically edit, change or add any content of a Web page Respond to user queries or data submitted from HTML forms Access any data or databases and return the results to a browser

What Can be Done with ASP The advantages of using ASP instead of CGI and Perl, are those of simplicity and speed Provides security since your ASP code can not be viewed from the browser Since ASP files are returned as plain HTML, they can be viewed in any browser

A Sample ASP Script Hello World <% ' This will print to the browser the ' words Hello, ASP World. response.write "Hello, ASP World!" %>

ASP and Database Servers To interact with a database, you usually have to add code that talks to a particular database using a proprietary language. If you want your program to talk to an Access, FoxPro and Oracle databases you have to code your program with three different database languages.

ASP and Database Servers When programming to interact with ODBC you only need to talk the ODBC language. The ODBC Manager will figure out how to contend with the type of database you are targeting All that you need to do is have installed an ODBC driver that is specific to the type of database you will be using.

ODBC/DSN ODBC stands for Open Database Connection (or Connectivity). ODBC makes it easy to create ASP scripts that will connect to a database. Normally, each ODBC will have a DSN (Data Source Name). DSN contains all the information about the database

Setting Up the DSN Setting up the DSN is a simple process. Simply double-click the ODBC in the Control Panel Choose the System DSN tab, and click Add. Choose the type of database you'll be working with - the sample database is MS Access - then click finish. You'll then need to type in the database name in the Data Source Name box, and click Select.

Setting Up the DSN Next you'll navigate to the drive and directory where the database is located, Click on the file name and click OK on that window and the one behind it. Now you can refer to the database by name in your scripts and the system will know which ODBC driver to use and where the database is located.