ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

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?
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
DT228/3 Web Development WWW and Client server model.
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Languages for Dynamic Web Documents
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
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.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
The Application Layer Chapter 7. Electronic Mail Architecture and Services The User Agent Message Formats Message Transfer Final Delivery.
Introduction to Web Database Processing
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.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
Introduction to Web Interface Technology (CSE2030)
1 The World Wide Web Architectural Overview Static Web Documents Dynamic Web Documents HTTP – The HyperText Transfer Protocol Performance Enhancements.
1 Software Testing and Quality Assurance Lecture 32 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
Definitions, Definitions, Definitions Lead to Understanding.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Computer Concepts 2014 Chapter 7 The Web and .
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
1998 PI System Users’ Conference PI on the Web: A Primer for PI Users Omicron Consulting 1998 PI System Users’ Conference.
3/8/00asp00 1 Active Server Pages from Microsoft Nancy McCracken Northeast Parallel Architectures Center at Syracuse.
Internet Concept and Terminology. The Internet The Internet is the largest computer system in the world. The Internet is often called the Net, the Information.
Internet, intranet, and multimedia database processing l Database processing across local and wide area networks l Alternative architectures for distributing.
Introduction to JavaScript + More on Interactive Forms.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
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.
2-1 WEB DATABSE INTERFACING Colorado Technical University IT420.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
JavaScript Tutorial 1 - Introduction to JavaScript1 Tutorial 1 Introduction to JavaScript Section A – Programming, HTML, and JavaScript.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
Introduction to JavaScript CS101 Introduction to Computing.
WWW: an Internet application Bill Chu. © Bei-Tseng Chu Aug 2000 WWW Web and HTTP WWW web is an interconnected information servers each server maintains.
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.
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
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.
Introduction to the World Wide Web & Internet CIS 101.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Active Server Pages v.s. Java Server Pages Presenters: Lan Guo Qunying Fan Pei-Xun Wu Date:
National College of Science & Information Technology.
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.
Section 6.3 Server-side Scripting
CISC103 Web Development Basics: Web site:
PHP / MySQL Introduction
CISC103 Web Development Basics: Web site:
Configuring Internet-related services
Presentation transcript:

ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson

ASP-2-2 Internet Protocols TCP/IP is used to transport information around the Internet. TCP/IP can re-route traffic as needed. When a web page is requested, TCP provides the transmission format for the instruction. Before data is sent out, HTTP is used to put an address label on the data.

ASP-2-3 Web Page Addressing Utilizing HTTP, web pages are transferred from the server located at the Uniform Resource Locator (URL). The URL is used like an address. It has the name of the server being addressed. The physical address (TCP/IP) is determined from the name in the URL through the services of the ISP (DNS).

ASP-2-4 Hypertext Transfer Protocol HTTP messages contain information in a request and response line. Message information that is passed between computers can be examined by the ASP programmer. HTTP messages contain a request message and a response message, HTTP header, and HTTP body (resultant HTML code).

ASP-2-5 HTTP Request Line This is the first line of every HTTP request. Three of the most common types of methods available: –Get - this is a request for information. –Head - this is a request for header information only. –Post - this is a data transfer request to transfer data to the server.

ASP-2-6 HTTP Header The HTTP header contains details of information associated with the client. Header information consists of three parts: –General - information about the client or server –Entity - information about data being sent –Request - Information about client configuration and acceptable types of documents.

ASP-2-7 HTTP Response Line The response line is sent back to the client from the server. The response line contains two pieces of information: –HTTP version number – HTTP request code reporting success or failure of the request.

ASP-2-8 HTTP Response Line Codes HTTP response line codes are groups as follows: – is informational codes – is success codes – Request has not been performed – is client error codes – is server error codes

ASP-2-9 HTML Scripts Scripting languages can be embedded into the HTML page and are interpreted by the browser (or can be server-side scripting also). ASP uses a scripting language, but only on the server-side. With ASP, the browser sends server requests that cause the server to execute the script and generate HTML that is sent to the browser.

ASP-2-10 Scripting Languages There are a number of scripting languages, VBScript and Javascript are the most popular scripting languages being used. Jscript is a Microsoft version of the Javascripting language. The script must have an interpreter (script engine) to handle execution of the commands.

ASP-2-11 Client-Side Scripting Client-side scripting is accomplished by a script engine in the browser. Script tags ( ) are used to identify the script from standard HTML. The code that resides in between the tags is used to perform logic operations in conjunction with the HTML being presented by the browser.

ASP-2-12 Server-side Scripting Server-side scripts provide logic capability at the server to allow many different operations to take place associated with the response back to the client. The tags associated to server-side ASP scripting is the tags. It is possible to use the tag with RUNAT=SERVER within an ASP file.

ASP-2-13 IIS Handling of ASP Pages When IIS receives a request it checks the file extension of the requested page. The ASP script host (asp.dll) is then sent the requested page to be executed. Any VBScript or Jscript is farmed out to the appropriate script engine and the ASP code is executed. The ASP script host then puts it all back together and sends it to the client.

ASP-2-14 Server Caching IIS servers cache information from one request to another. If a request has been executed recently the results returned to the browser could very likely be from the server cache. The problem with this is that changes may have occurred to the ASP file since the last request. If the request is sent multiple times the proper results will eventually be seen.

ASP-2-15 Client Script Advantages and Disadvantages Allows developer to create more functional web pages. Client side scripting is executed immediately (response times are faster). Executing scripts on client side takes the load off of the server. Disadvantage is you can’t depend on browser have the correct script engine. Another disadvantage is that code is visible to all users.

ASP-2-16 ASP Objects and Components Objects contain functions and information neatly encapsulated to manage interaction between the web server and and browser. Components are packages of related objects. ASP functionality is contained in seven intrinsic objects.

ASP-2-17 ASP Intrinsic Objects Request - used to deal with a client request Response - used to deal with a response back from the server to the client Server - provides common server functionality associated to server operations Application - used to represent a whole web application (used to manage contents of an application).

ASP-2-18 ASP Intrinsic Objects contd. Session - used to store information about a client session (e.g. maximum time that web server will wait for a user’s request. ObjectContext - used to manage transactions. Works in association with MTS on pre-windows 2000 systems. It is part of the Windows 2000 environment. ASPError - contains the details of all errors generated by an ASP script or the script host.

ASP-2-19 Active Server Components Components (DLL’s) that are part of the ASP supplied by Microsoft. They provide a wide range of capabilities to enhance ASP usage. Ad Rotator - ad rotator for a web page Browser Capabilities - used to determine browser support Content Linking - used to manage sets of web pages.

ASP-2-20 Active Server Components contd. Content Rotator - text Ad rotator (Displays text only) Counters - used to manipulate values. These are manually set. Logging Utility - allows applications to read IIS log files MyInfo - used for storing personal information about the server administrator. Page Counter - automatic page counting Permission Checker - permissions tracking for read or execution of a file Tools - miscellaneous set of properties, (e.g. checks to see if a file exist, etc.)

ASP-2-21 Microsoft Data Access Components The Microsoft Data Access Components (MDAC) provide a standard method of access to all types of databases utilizing Open Database Connectivity (ODBC). A group of objects in this component family are the Activex Data Objects (ADO). ADO’s allow data to be viewed, manipulated and updated through standard Microsoft techniques.

ASP-2-22 ASP Usage Any legal operation within VB is now available to the client machine through the use of these ActiveX objects. Using ADO objects allows connection to a database from the client. ADO will return Recordsets of data to the client for display in HTML.

ASP-2-23 ASP ADO Usage <% Set Connect = Server.CreateObject("ADODB.Connection" ) Connect.Open "MyDatabase" Set RecordSet = Connect.Execute("SELECT * FROM Customers") %>

ASP-2-24 ASP ADO Usage contd.

ASP-2-25 ASP ADO Usage contd. Using ADO, the open method could use optional parameters for username and password if the database being accessed required it. The data records would be displayed in the HTML returned to the client that is between the loop. The fields were accessed by number, but they can also be accessed by name.

ASP-2-26 ASP Form Usage ASP provides access to the native ASP objects, Request and Response. This provides the capability to collect data from the client through a form tag. The data in the client would be sent back to the server through the request object. This is similar to getting the data out of the URL. ASP must be saved with an ASP extension.