Introducing ASP+ Scott Mitchell

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

Session 6 Module 2 Calling a Web Service from an ASP.NET Web Page.
Building and Using Web Services with ASP.NET Rob Howard Program Manager.NET Framework Team Microsoft Corp.
DT228/3 Web Development WWW and Client server model.
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.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
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.
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.
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.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
IT533 Lectures Configuring, Deploying, Tracing and Error Handling.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
INTRODUCTION TO WEB DATABASE PROGRAMMING
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
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,
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Internet Applications Notes for Chapter 19 Digital Domain, 2 ed.
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.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
SSC2: Web Services. Web Services Web Services offer interoperability using the web Web Services provide information on the operations they can perform.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Dynamic Content On Edge Cache Server (using Microsoft.NET) Name: Aparna Yeddula CS – 522 Semester Project Project URL: cs.uccs.edu/~ayeddula/project.html.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
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 
Website Development with PHP and MySQL Saving Data.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
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.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
Introduction to JavaScript CS101 Introduction to Computing.
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.
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,
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
Introduction and Principles Web Server Scripting.
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.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Website Design, Development and Maintenance ONLY TAKE DOWN NOTES ON INDICATED SLIDES.
Java Script. introduction Today’s web sites need to go much beyond HTML. browsing through a web site, to actually interact with the web site. The web.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
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.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
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.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
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.
Active Server Pages Computer Science 40S.
Client side & Server side scripting
Web Development Using ASP .NET
Chapter 27 WWW and HTTP.
Presentation transcript:

Introducing ASP+ Scott Mitchell

The Evolution of the Web Static Web Pages Content was static. To alter the look and feel of a Web page, a programmer had to physically alter the contents of the page itself. The static nature of the Web at this time removed any possibility of a user interacting with a Web site or interaction among Web sites. Performance was great and development easy, but the Web lacked any real usability. Dynamic Scripts Dynamic scripts allowed for user interaction with a Web site. Web content could be dynamically generated based on a number of variables, such as user input. Allowed for the Web to serve as an application medium. Development was anything but easy. The scripting nature of development led to poor programming practices and “messy” code. Also, interaction among Web sites was possible, but limited and difficult. Distributed, Compiled Programs Web pages are actual, programs created using object-oriented programming techniques. These programs are compiled instead of interpreted like the scripts of the past. A focus on Inter-Web server communication allows developers to build truly distributed applications on the Web.

Problems with ASP Today Nasty code - content and code are helplessly mixed as code snippets are sprinkled around HTML blocks. Deploying an ASP application is difficult, potentially requiring setting changes to the IIS metabase and registration of various COM components. Common tasks, such as server-side form validation, displaying database results, caching data, user authentication, uploading binary files, etc., are difficult. Scripting languages offer poorer performance and encourage more spaghetti-like code than their compiled counterparts. Terrible (terrible!!!) debugging support…

ASP+ to the Rescue! ASP+ pages are created with the syntax of modern, compiled programming languages - either VB (not VBScript), JScript.NET, C#, or others. The registry is no more. Components no longer need to be registered. Deployment is as simple as XCOPY ASP+ provides several, customizable, server-side controls for common tasks: validation, file upload, database display, etc. ASP+ provides mechanisms for inter-Web server communication, regardless of the Web server or platform. Exceptional debugging tools and options.

The Makeup of ASP+ ASP+ Web Pages ASP+ Web Services ASP+ Application Layer

ASP+ Web Pages These serve the same purpose as ASP pages today: a dynamic Web page users can visit via the Internet. ASP+ pages have a.aspx extension, and are text files, just like ASP pages. In fact, they can be created to look remarkably like ASP. (Show demo1.aspx…) ASP+ pages do not support VBScript. Rather, pages are created with full-blown VB 7 (or JScript.NET or C#).

Changes from VB6 to VB7 No more default properties for objects: objRS(“columnName”) will generate an error, must use: objRS.Fields(“columnName”).Value As a consequence, Set and Let are no longer supported. All calls to subroutines must have parenthesis Variables can be dimensioned and initialized simultaneously: Dim i as Integer = 4 Error handling now uses Try … Catch … Finally blocks as opposed to On Error Goto. VB7 is (finally) a real OOP language. Now possible to use polymorphism and true inheritance.

Changes from ASP Coding Styles to ASP+ Coding Styles All functions and subs must exist in blocks (functions cannot exist in the inline code ( )). ASP+ design encourages use of post-back forms ASP+ offers server controls. These controls provide an object model developers can program against. ASP+ pages are designed to be event-driven as opposed to procedural-based.

ASP+: Write Less Code Collecting and acting on user input… a comparative look at ASP and ASP+ (create/run demo) Note the use of HTML server controls in the ASP+ page. These are created by adding the runat=“server” property to standard HTML tags… Note that we can wire up events in the server controls

Server-Side Validation Example With ASP, server-side validation was oft- repeated and a ton of code… ASP+ introduces a number of Validation controls to ease the task of validating form input. Show ValidationDemo.aspx For more info, visit:

Web Services: Inter-Server Communication SERVER CLIENT HTML SERVER XML CLIENT XML

Creating Web Services with ASP+ Creating Web Services with ASP+ is as simple as creating a class (show Math.asmx demo). Web service files have an.asmx extension. ASP+ creates a default description page for a given.asmx file (show demo by visiting ). An.asmx files SDL (service description language) can be viewed by visiting the.asmx file and appending ?sdl to the QueryString.

Inter-Server Communication SERVER INTIATING COMMUN- ICATION SERVER RECEIVING COMMUN- ICATION REQUEST Via HTTP Protocol, a Discovery request is sent (DISCO) Server returns Service Description Language (SDL), describing Web service Sends SOAP Request in format specified in SDL Sends SOAP Response, communications complete

Calling a Web Service from an ASP+ Page A proxy class must be created based on the Web service’s SDL. This task can be automated by WebServiceUtil.exe (show Proxy class creation demo) This proxy class must then be compiled into a DLL (show compilation of proxy class) and moved into the \bin directory The Web service can then be accessed programmatically from an ASP+ page (demo: show AccessMathProxy.aspx )

In Conclusion... ASP+ is an entirely new way to create interactive, distributed Web applications. ASP+ enables developers to write more powerful applications with fewer lines of code. ASP+ addresses many of the disadvantages of ASP. ASP+ Web services allow for developers to create truly distributed applications running over standard protocols.

To Learn More about ASP+ Download the pre-beta bits at: Pick up a copy of Wrox’s A Preview to ASP+ (Anderson, Homer, Howard, and Sussman) Visit the many great ASP Web sites: 4GuysFromRolla.com, ASPFree.com, ASP101.com, ASPNG.com Have your ASP+ Questions Answered at: ASPMessageboard.com, ASPLists.com