A Little Bit of Active Server Pages (ASP)

Slides:



Advertisements
Similar presentations
© 2009 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Advertisements

DT211/3 Internet Application Development Active Server Pages & IIS Web server.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
Introduction to ASP.NET What is.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting.
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
XML Web Services ASP.NET. Overview of Web Services (Page 1) Web Service – Part or all of a Web application that is publicly exposed so that other applications.
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 SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
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.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
ASP.NET Dr. Ralph Westfall May, Web Development Problem HTML designed to display static pages only interactive when user clicks links  can’t provide.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
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.
Data-Enabled Web Sites: Classibooks.com & Internet Database Technologies Colin Fukai April 4, 2000 Gonzaga University.
VS.NET Syllabus By Peter Huang.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
Introduction to ASP.NET 1www.tech.findforinfo.com.
Cross-Language Demo Demonstrates mixing C# and VB.NET code C# Class CSDemoClass.cs VB.NET Class VBDemoClass.vb “Main” class (C#) Demo.cs.
© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
XML Web Service. Overview of XML Web Service ASP.NET XML Web services enable you to remotely access the properties and methods of classes across a network.
Web Architecture Introduction
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.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
Module 9: Using XML Web Services in a C# Application.
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
C# 1 Web services CSC 298. C# 2 Web services  A technology to make libraries available across the internet.  In Visual Studio,  can create a web service.
Understanding Web Applications Lesson 4. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Web Page Development Understand Web.
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.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
INT213 INT213 – Managing Windows with VBScript VBScript Variables ASP State Management.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
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.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Jim Fawcett CSE775 – Distributed Objects Spring 2003
Web Programming Language
Creating,Publishing,Testing and Describing a Web Service
Active Server Pages Computer Science 40S.
Web Forms, HTML, and ASP.NET
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
21 – Web applications: Server-side code (ASP)
Introduction to Client-Server Programming
Florida Gulf Coast University
ASP.NET Web Forms and Web Services
Active Server Pages ASP.Net
PHP / MySQL Introduction
INTRODUCTION TO WEB SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
Introduction to Internet Programming
Web Services Introduction
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
The Request & Response object
IS 360 Course Introduction
Web Development Using ASP .NET
Consuming Webservice in AX 2012
ASP.NET Module Subtitle.
Static and Dynamic Web Pages
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Web Servers (IIS and Apache)
Programming with Microsoft Visual Basic 2008 Fourth Edition
Jim Fawcett CSE791 – Distributed Objects Spring 2002
Presentation transcript:

A Little Bit of Active Server Pages (ASP) Jim Fawcett CSE681 – Software Modeling and Analysis Fall 2004

ASP Environment ASP lives only in Microsoft’s Internet Information Server (IIS) It started out as a server-side scripting language Used to create dynamic web pages, depending on things like: Application context Session context Data from server For many of its activities it depended upon server-side COM objects. Under .Net it has grown to support use of fully object oriented programming languages: C# code behind, for example

Server Object Model Application Object Request Object Reponse Object Data sharing and locking across clients Request Object Extracts client data and cookies from HTTP request Reponse Object Send cookies or call Write method to place string in HTML output Server Object Provides utility methods Session Object If browser supports cookies, will maintain data between page loads, as long as session lasts.

Server Side Programming with ASP An Active Server Page (ASP) consists of HTML and script. HTML is sent to the client “as-is” Script is executed on a server to dynamically generate more HTML to send to the client. Since it is generated dynamically, ASP can tailor the HTML to the context in which it executes, e.g., based on time, data from client, current server state, etc.

ASP Sample <html> <head> <title>ASP Example #2</title> <style> body { margin-left: 15%; margin-right: 15% } body { font-size: 14pt } body { font-family: Tahoma } select { font-family: Tahoma; font-size: 14pt } input { font-family: Tahoma; font-size: 14pt } h2 { BACKGROUND: #ffffcc; COLOR: darkred } </style> </head> <body> <center> <h2>CSE691/891 - Internet Programming, Summer 2001</h2> <% ' Option Explicit Dim sTime sTime = Time() Response.Write "<h1>Hello</h1>" %> Server time is <% Response.Write sTime %> </center> <br /> Brought to you by the friendly services of your server Response Object. </body> </html>

ASP.Net Sample

Introduction to .NET The .NET Platform Clients Applications ASPWeb Form Web Service Protocols: HTTP, HTML, XML, SOAP, UDDI .NET Framework Tools: Visual Studio.NET, Notepad Each blue box represents a separate computer (or cluster of computers). Windows Your Internal Web Service .NET Foundation Web Services Third-Party Web Services .NET Enterprise Servers

ASP Environment

<%@ WebService Language="C#" Class="CalcService" %> using System; using System.Web.Services; [WebService (Name="Calculator Web Service", Description="Performs simple math over the Web")] class CalcService { [WebMethod (Description="Computes the sum of two integers")] public int Add (int a, int b) return a + b; } [WebMethod (Description="Computes the difference between two integers")] public int Subtract (int a, int b) return a - b; ASP Web Service Code on this page and next from: Programming Microsoft .Net, Jeff Prosise, Microsoft Press, 2002

Client for Calc Web Service using System; class MyApp { public static void Main () CalculatorWebService calc = new CalculatorWebService (); int sum = calc.Add (2, 2); Console.WriteLine ("2 + 2 = " + sum); }

CalculatorWebService Proxy Building Proxy source code using WSDL.exe

Web Service asmx page in Virtual Directory

CalculatorWebService in Action

End of Presentation