Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

18
Microsoft® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC

Transcript of Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Page 1: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Microsoft® ASP.NET

Presented by

Joseph J. Sarna Jr.

JJS Systems, LLC

Page 2: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Agenda

• ASP versus ASP.NET• Web Applications• Web Services• Accessing Web Services• Summary

Page 3: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

ASP versus ASP.NET

ASP ASP.NET

Scripting language – not compiled

Compiled code – full language support

Blend of HTML and script on one page

Code behind page – separate VB file

Developer needs to code all server-side actions

Server-side controls handle most boiler-plate coding

Debugging difficult Debugging runs in the IDE

ASP and ASP.NET can coexist on the same IIS Server

Page 4: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Agenda

• ASP versus ASP.NET• Web Applications• Web Services• Accessing Web Services• Summary

Page 5: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Web Applications

The trend to Internet/Intranet based applications requires:

o Need for a more robust programming model than ASP

o Need for browser compatibilityo Need for event-driven applicationso Database interaction

Page 6: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

ASP.NET Namespaces - Web

System.Web Core types that enable browser communication

System.Web.Caching Types that provide caching support

System.Web.Configuration Types that affect the configuration of the web application configuration file

Page 7: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

ASP.NET Namespaces – Security and UI

System.Web.Security Types that support security for a web application

System.Web.UI Types that provide ability to build

System.Web.UI.WebControls GUI interfaces for a web application

Systems.Web.UI.HTMLControls

Page 8: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

ASP.NET Namespaces – Web Services

System.Web.Services

System.Web.Services.Discovery

System.Web.Services.Description

System.Web.Services.Protocols

Types that allow the building of Web Services

Page 9: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Create a Web Application

Page 10: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Agenda

• ASP versus ASP.NET• Web Applications• Web Services• Accessing Web Services• Summary

Page 11: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Web Services

• Managed code that can be invoked remotely over HTTP requests

• Replacement of DCOM• Provides Black-box functionality to the consumer of the

web service• Can be called from a browser-based client, console

client, or Windows-based client

Page 12: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Web Service Anatomy

• Invocation protocol – HTTP GET, HTTP POST, SOAP

• Description service – XML schema used to descibe the web service (WSDL – Web Services Description Language)

• Discovery service – XML-based files that allow a client to discover the web services exposed (*.vsdisco)

Page 13: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Create a Web Service

Page 14: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Agenda

• ASP versus ASP.NET• Web Applications• Web Services• Accessing Web Services• Summary

Page 15: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Access a Web Service via a Windows Application

Page 16: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Access a Web Service via a Web Application

Page 17: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

Summary

• ASP versus ASP.NET• Web Applications• Web Services• Accessing Web Services• Summary

Page 18: Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.

New Hampshire Access/Visual Basic User Group

• Meets 4th Wednesday of each month

• Meetings held at Southern New Hampshire University

• Link to Information - http://www.jjssystems.net