Active Server Pages Points of Interest Chapters 1-4.

Slides:



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

Java Script Session1 INTRODUCTION.
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Languages for Dynamic Web Documents
IIS Technologies.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
1 Chapter 12 Working With Access 2000 on the Internet.
1 Today: Introduction to ASP- Part 1 Explain the client/server architecture Explain Web-based client/server applications Understand the essentials of Active.
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.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
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.
Introduction to Active Server Pages
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
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.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Using Data Active Server Pages Objectives In this chapter, you will: Learn about variables and constants Explore application and session variables Learn.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
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.
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.
Advanced Web Design Scripting Tutorial Chapters. Scripting Intro The scripting part of the forthcoming Advanced Web Design textbook introduces you to.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
ASP The Global.asa file Y.-H. Chen International College Ming-Chuan University Fall, 2004.
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.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Tutorial 10 Programming with JavaScript
Done by: Hanadi Muhsen1 Tutorial 1.  Learn the history of JavaScript  Create a script element  Write text to a Web page with JavaScript  Understand.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
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.
Dani Vainstein1 VBScript Session 1. Dani Vainstein2 Subjets for Session 1 Vbscript fundamentals. Variant subtypes. Variables. Option Explicit statement.
INT213 Week 1.  A Named storage area (in RAM) that can hold a value (like a mailbox holding a letter)  Contents of a variable can be assigned, changed.
EIW - ASP Introduction1 Active Server Pages VBScript.
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
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.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
Web111a_chapt08.ppt HTML: Section 8 JavaScript CGI Programs (Server Side programs) Common Gateway Interface Run on server Communicate with user across.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
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 (COMPONENTS) Active Server Pages (cont..) 1. global.asa file The Global.asa file is an optional file that can contain declarations of objects, variables,
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.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Application Object Controlling the Application Application Object Controlling the Application.
Raina NEC Application Object Describes the methods, properties, and collections of the object that stores information related to the entire Web.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
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.
VBScript Session 1 IT Professional Academy.
Tutorial 10 Programming with JavaScript
Active Server Pages Computer Science 40S.
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
Intro to Programming (in JavaScript)
Presentation transcript:

Active Server Pages Points of Interest Chapters 1-4

ASP versus HTML Major differences? What can ASP do that HTML cannot?

Active Web Sites ActiveX controls - Visual C++ or Visual Basic Create a functionality Java Scripting Languages (VBScript, JavaScript) ASP and Dynamic HTML

Running ASP PWS, IIS, Chilisoft

ASP Pitfalls and Editing Open from the server URL instead of the pathname. What does P&U primarily use for an editor? Did people get InterDev 6.0 yet?

ASP Objects Request: to get information from the user Response: to send information to the user Server: to control the Internet Information Server Application: to share application-level information and control settings for the lifetime of the application Session: to store information about and change settings for the user's current Web- server session ObjectContext: (used mostly with MTS)

ASP Objects Each set of objects has a set of functions it can perform called methods and one or more properties value = object.property value = object.method() Some newer objects at

Order of Execution 1. global.asa (Text file with details about an ASP application, such as when it should begin and end [more in CH9]) 2. Server-side includes (refers to current directory) (refers to root of system) 3. Jscript/JavaScript tagged within 4. HTML with Scripts tagged within 5. VBScript tagged within tags

A sample (from ASP text) Using a form to get information and display it...

Variables Naming variables in VBScript 255 characters Must begin with an alphabetical Must not contain an embedded period Not case-sensitive

The Variant All variables in with different data types are of one type variant Can use the TypeName () funtion to determine the subtype of the variant PieceofString = 5 WhatTypeofVar = TypeName (PieceofString)

Conversions Since variants are automatically a subtype when a value is assigned to them, sometimes one needs to change the subtype Check page ) for functions

Some Interesting Items Assignment Operator Number1 = 2 Number1 = Number1 + 1 Comparison If Number1 = 2 Then... Concatenating Variants (subtype string) strConcatenate = "Helter" & "Skelter" strConcatenate2 = "Helter" & " " & "Skelter" Naming Conventions (114)

Dim and Option Explicit DIM (aka dimension) Dim ComputerSystem ComputerSystem = "Amiga" Option Explicit: every variable in the program must be explicitly declared in the code before it is used. First line in a client-side script Before when using server-side

Variable Scope Local Variables ( ) Global Variables (125) Private strGlobal (just within script declared) If in client-side ends when script does If in a server-side should last in ASP page/session

Arrays and Multi-Dimensional Arrays Declaring Loop Dim and Redim Preserve Multi-dimensional