ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.

Slides:



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

Adding Dynamic Content to your Web Site
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
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
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.
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.
Overview of ASP.NET Prepared By : Lec : Zalak Thakrar Follow Me on
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Active Server Pages Points of Interest Chapters 1-4.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Lecture Note 3: ASP Syntax.  ASP Syntax  ASP Syntax ASP Code is Browser-Independent. You cannot view the ASP source code by selecting "View source"
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.
CIS 375—Web App Dev II ASP II. 2 ASP Session: Introduction The Session _______ is used to store information about, or change settings for a user session.
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
ASP The Global.asa file Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
ASP Introduction 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.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
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,
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.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
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.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
INT213 INT213 – Managing Windows with VBScript VBScript Variables ASP State Management.
Maintaining State in ASP. Problem - How do I maintain state information about the user  Several Methods –Cookies –Session variables –Hidden fields 
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Application Object Controlling the Application Application Object Controlling the Application.
Active Server Pages Session - 3. Response Request ApplicationObjectContext Server Session Error ASP Objects.
ASP Syntax Y.-H. Chen International College Ming-Chuan University Fall, 2004.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
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,
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
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 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.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
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
Y.-H. Chen International College Ming-Chuan University Fall, 2004
ASP Explained By: Sarbjit Kaur.
Active Server Pages Computer Science 40S.
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
Section 17.1 Section 17.2 Add an audio file using HTML
PHP / MySQL Introduction
Database Driven Websites
ASP.
ASP.NET Module Subtitle.
Architecture of the web
PHP: Hypertext Preprocessor
Cookies A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer.
Presentation transcript:

ASP – Web Programming Class  Ravi Anand

ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create “dynamic” sites - HTML is static, ASP is dynamic - Ability to connect to web services, Databases, Server side components - Simple, Secure, Fast

ASP – Active Server Pages An ASP Page - Has a “.asp” extension - Can be edited using Notepad - Needs no compilation - Scripting typically done in vbscript - ASP pages are rendered as HTML pages - Also contains HTML, XML, client side scripts

ASP – Active Server Pages Running An ASP Page -On Your desktop -Install PWS on Windows 98 -Install IIS on 2000 /XP -On your “Server” -Typically 2003/ 2000 running IIS -All it needs is a webserver capable of running ASP

ASP – Active Server Pages An ASP Page

ASP – Active Server Pages ASP Scripting Languages -Default Scripting Language is vbscript - Can also use other scripting languages -such as javascript, PERL, etc - The script is executed on the server -Server should have the script Engine -Browser only gets an HTML ouput

ASP – Active Server Pages Creating an ASP PAGE (using vbscript) -Fundamentals -Variables -Loops -Conditional Statements

ASP – Active Server Pages Creating an ASP PAGE -2 -Scope – Application, Session, function/sub routine -Declaring a Variable Refer Example 2 -Declaring Arrays Dim students(6) - Refer Example 3

ASP – Active Server Pages Creating an ASP PAGE Dynamic Content -Create HTML dynamically - Eg.Tables / Rows - Refer Example 4, 5

ASP – Active Server Pages Creating an ASP PAGE Writing routines sub Add2Numbers(int1, int2) response.write(int1 + int2) end sub

ASP – Active Server Pages Creating an ASP Form Example 8, 9

ASP – Active Server Pages Handling cookies --Write to a cookie --Reading from a cookie

ASP – Active Server Pages Response Object --Send output to the user from the server

ASP – Active Server Pages Request Object --Get information from the user

ASP – Active Server Pages Session Object --Store information related to a user session - E.g. Data Retrieved, Authentication, Error Information - Data that will be used across the Screens in the same session -Storing Info in a Session Variable -Session(“AccountNumber")=“#ABCDE&^*1234" -Session(“Location")=“Macomb” -Retrieving info from a Session -Response.Write(Session(“AccountNumber"))%>

ASP – Active Server Pages Application Object -To group the files in an application

ASP – Active Server Pages Server Object --To access properties and methods on the server.

ASP – Active Server Pages Error Object --Information of any error that occurs in scripts in an ASP page

ASP – Active Server Pages Global.asa sub Application_OnStart 'some code end sub Sub Application_OnEnd 'some code end Sub sub Session_OnStart 'some code end sub sub Session_OnEnd 'some code end sub