Elements of ASP Documents Adapted from MCDN Web Workshop (http://msdn.microsoft.com/workshop/server/asp/ASPover.asp) and Webmonkey’s Introduction to Active.

Slides:



Advertisements
Similar presentations
E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
Advertisements

Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
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
IIS Technologies.
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.
Servlets and a little bit of Web Services Russell Beale.
An Overview of Database Access on the Web An Overview of Database Access on the Web Using ASP and Microsoft Database Technology Sheffield Hallam University.
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.
Multiple Tiers in Action
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
Apache Tomcat Server Typical html Request/Response cycle
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Dynamic Web Sites Chris North cs3724: HCI. Presentations matt ketner, sam altman, mike gordon Vote: UI Hall of Fame/Shame?
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 1: Introduction to Web
Server-side Scripting Powering the webs favourite services.
Data-Enabled Web Sites: Classibooks.com & Internet Database Technologies Colin Fukai April 4, 2000 Gonzaga University.
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.
Server Side Programming ASP1 Server Side Programming Database Integration (cont.) Internet Systems Design.
Python CGI programming
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
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 
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
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.
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.
Lecture Note 8: ASP Including Files and The Global.asa file.
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.
Web Application Development with Active Server Pages David Henson
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Database Connectivity and Server-Side Scripting Chapter 12.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Chap 2 – Getting Started COMP YL Professor Mattos.
Display Page (HTML/CSS)
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Raina NEC Application Object Describes the methods, properties, and collections of the object that stores information related to the entire Web.
Server Object Server Object. The Server object represents a programmable interface to the HTTP service that provides a mechanism to administer and control.
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.
Active Server Pages v.s. Java Server Pages Presenters: Lan Guo Qunying Fan Pei-Xun Wu Date:
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
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.
Introduction to Dynamic Web Programming
Section 6.3 Server-side Scripting
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
ASP Explained By: Sarbjit Kaur.
PHP / MySQL Introduction
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
The Request & Response object
Chapter 27 WWW and HTTP.
Chapter 2 Interacting with the Customer
Presentation transcript:

Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active Server Page (

Server Side Scripting Javascript: universally used on the browser for client side scripting. php, pearl, ASP, ASP.NET, JSP: used for client side scripting. Client side scripting can capture input from client forms and write ; connect to DB, search DB, and return information to clients.

What is Active Server Page? A specification for a dynamically created Web page. When the browser requests an ASP document, the server creates an HTML page on the fly and sends it to the client. ASP refers to: Microsoft technology for Server-side scripting Can combine HTML, VBScript, Javascript, ADO Web document that contains ASP code Has extension.asp

What Can You Do with ASP? Put Employee records on-line, so that they can be updated by individuals--e.g., health plan Tie on-line store to existing inventory database Allow visitor to a Web site for only that information the person seeks

ASP Cycle BrowserServer ASP Engine Com Objects Browser requests ASP page from server 2. Server sends ASP page to ASP engine 3. ASP engine executes server- side scripts 4. ASP calls for COM* objects (when needed) 5. COM object retrieved (when asked) 6. ASP engine sends HTML stream to server 7. Server sends HTML code to browser *COM: Component Object Model—MS-developed standards to allow programmers to access OLE and Active X objects

ASP Statements ASP uses the delimiters " " to enclose script commands. For example, the following code sets the value of the variable "MyFavTVShow" in the user cookie to "I Dream of Jeannie."

Code Example 1 = #12:00:00 AM# And Time Good Morning! Hello! The following code segment prints appropriate greeting to a Web page depending on the time of day.

Built-in Objects ASP includes five standard objects for global use: Request—to get information from the user Response—to send information to the user Server—to control the Internet Information Server Session—to store information about settings and change them for the user's current Web-server session Application—to share application-level information and control settings for the lifetime of the application

Methods for Response Object AddHeader—Adds an HTML header with a specified value AppendToLog—Appends a string to the end of the Web server log file BinaryWrite—writes binary data (i.e, Excel spreadsheet data) Clear—clears any buffered HTML output. End—stops processing of the script. Flush — sends all of the information in the buffer. Redirect—to redirect the user to a different URL Write—to write into the HTML stream.

Writing to HTML Document or the shortcut command

Methods for Server Object CreateObject—to create an instance of a server component. This component can be any component that you have installed on your server (such as an ActiveX ). HTMLEncode—to encode the specified string in HTML. MapPath—to map the current virtual path to a physical directory structure. You can then pass that path to a component that creates the specified directory or file on the server. URLEncode—applies URL encoding to a specified string.

Code Example 2 Test an ASP <body bgcolor="cccc66" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> This part is from HTML. This is another line from VBScript. ") %> Click here for result

Click here for HTML code