A Light Introduction to ASP.NET Kevin McManus Adapted from material by Gill Windall and Mark Sapossnek.

Slides:



Advertisements
Similar presentations
Introduction to .NET Framework
Advertisements

Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
.NET Framework .NET Training Program Ashutosh Pandey
Introduction to.NET Technology Marcello Benati Software Engineer.NET Architect.
Overview of.NET Prepared by: Xin,Lu.NET Seminar Aug.10, 2003.
CIM2564 Introduction to Development Frameworks 1 Overview of a Development Framework Topic 1.
Introduction to.NET What is.NET?  A vision Web sites will be joined by Web services New smart devices will join the PC User interfaces will become more.
Introduction. What is.Net? The hype: “Microsoft.Net is a set of Microsoft software technologies for connecting information, people, systems, and devices.
.Net Overview Giuseppe Attardi Università di Pisa.
Microsoft.Net Technology Sachin Shetty Vimal Amin Thomas Mullasaril Vinutna Pulavarti Software Engineering CS616 Instructor:Dr.Tappert.
ISYS 546 Client/Server Database Application Development.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Thursday Evening 6.30VB.NET Introduction 7.30Break for food 8.00VB.NET Migration 8.45Q & A 9.00Done.
Module 1: Overview of the Microsoft.NET Framework.
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
.net Microsofts ’ Platform for Web Services Naveed Arshad.
Introduction to ASP.NET
SQL Server 2005 CLR Integration ADO.NET 2.0 Mike Taulty
DotNET A Developer’s Perspective Mike Litzkow University of Wisconsin - MadisonOne.
Platforms and tools for Web Services and Mobile Applications Introduction to.Net Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Rajeswari Indupuri Introduction to.NET Framework.
Using.NET Skills To Build Mobile Applications In Compact Framework Punit Shah Technical Lead | Microsoft |
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
1 NIIT, South Ex. 2  Introduction to.NET  Web Services  The.NET Framework  Common Language Runtime  Windows Forms  Web Forms  ADO.NET  Languages.
Overview of.NET Framework Carlotta Eaton Associate Professor of IST New River Community College Dublin, VA Slides created by Microsoft Modified by Carlotta.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
VS.NET Syllabus By Peter Huang.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
Microsoft.NET Framework Overview Abidi Mahmoud Seminarium on Component -based Software Engineering.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Introduction to Visual Studio.NET Pradeep K. Shah
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Introduction to .NET Rui Ye.
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.
Module 1: Overview of the Microsoft.NET Platform.
.NET O VERVIEW Introduction to.NET Web Services The.NET Framework Common Language Runtime Windows Forms Web Forms ADO.NET Languages.
What is.NET? CS 351 Ed Gellenbeck. Today What is.NET? What Problems Does.NET Solve? What are.NET Framework Components?
CF and.NET Working Together Using Web Services Geoff Snowman Developer Community Champion Microsoft Corporation.
Dynamic Content On Edge Cache Server (using Microsoft.NET) Name: Aparna Yeddula CS – 522 Semester Project Project URL: cs.uccs.edu/~ayeddula/project.html.
.Net Framework Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours
Component-Based Software Engineering Introduction to.NET Paul Krause.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
.Net – The First Glance What Is.Net, Why Use.Net.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
DotNet Michelle Johnston, Firebird Services Ltd. What is Dot Net Aims to simplify web development Language independent – CLR (Common Language Runtime)
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Microsoft.NET Norman White Stern School of Business.
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.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Key Components of.NET Framework  Common Language Runtime  CLR at Design time  CLR at Runtime  Class Library  Assemblies  Namespaces  ASP.NET  Applications.
Module 1: Overview of the Microsoft .NET Framework
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
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 Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Introduction to the Microsoft.NET Framework Chris Wastchak Student Ambassador to Microsoft.
Introduction to .NET Framework
Introducing the Microsoft® .NET Framework
.NET Omid Darroudi.
Web Development Using ASP .NET
Introduction to .NET Framework
Microsoft .NET Presentation
.NET Framework Design Goals
Presentation transcript:

A Light Introduction to ASP.NET Kevin McManus Adapted from material by Gill Windall and Mark Sapossnek

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 2 Contents An overview of what.NET is and some of its key features Describe the areas of.NET likely to have an impact on how web applications are developed What is Microsoft.NET? Some views Web Services ASP.NET versus ASP.NET Platform and.NET Framework Common Language Runtime (CLR)

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 3 What is Microsoft.NET? that new language C# Microsoft putting XML into everything the next version of Visual Basic the next version of ASP the next version of Visual Studio Microsoft trying to kill Java being able to run everything across the Net it’s a good thing it’s rubbish!!!

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 4 What is Microsoft.NET? Initially announced as the latest release of everything Microsoft ASP.NET, VB.NET, VisualStudio.NET With some big ideas the new language C# got rid of VB at last the Common Language Runtime (CLR) language integration - shared libraries possible platform independence an attack on JRE ability to develop and use software components over the web XML based Web Services simplified deployment of Windoze software an end to DLL hell no use of the “registry” no more mixing HTML and script code in ASP

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 5 Web Services Allow remote access to software components via standard web protocols Use XML to exchange structured data Microsoft.NET is just one implementation of Web Services but there are many others The idea of Web Services is not exclusive to Microsoft “Last Wednesday, Microsoft released a new software development program called Visual Studio.Net. …. it represents the company's big leap into Web services, which many hope will trigger the next generation of corporate computing innovation. Microsoft spent $2 billion developing Visual Studio.Net and C#, but just about every other technology company on the planet -- including IBM and Sun Microsystems -- is also placing big bets on Web services.” ZDNet Feb 2002

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 6 Web Services and Microsoft.NET There were three main angles on this: 1.Microsoft plans to provide a number of Web Services that application developers can use for a fee Microsoft.NET Passport - authentication service offers single sign-on capability for any Web site now Windows Live ID Microsoft.NET My Services - set of user-centric, XML Web services to manage, protect personal information e.g. Calendar, Contact, Inbox 2. Using ASP.NET you can create Web Services that others can use 3.Using a.NET language (or ASP.NET) you can write a program that uses Web Services

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 7 Programming the Web Server-Side Code What is server-side code? Software that runs on the server, not the client Receives input from URL parameters HTML form data Cookies HTTP headers Can access server-side databases, servers, files, mainframes, etc. Dynamically builds a custom HTML response for a client

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 8 Programming the Web Server-Side Code Why server-side code? Availability You can reach the Internet from any browser, any device, any time, anywhere Manageability Does not require distribution of application code Easy to change code Security Source code is not exposed Once user is authenticated, can only allow certain actions Scalability Web-based 3-tier architecture can scale out

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 9 Programming the Web Server-Side Technologies Common Gateway Interface (CGI) not language specific Internet Server API (ISAPI) Netscape Server API (NSAPI) Active Server Pages (ASP) now obsolete Java Server Pages (JSP) PHP Hypertext Processor (PHP) Cold Fusion (CFM) actually J2EE with the arrival of ColdFusion MX ASP.NET

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 10 Programming the Web Active Server Pages (ASP) Technology to easily create server-side applications A complete rip-off of the good work of Rasmus Lerdorf ASP pages are written in a scripting language usually VBScript but also Jscript or PerlScript An ASP page contains static HTML interspersed with server-side code ASP script is (was) commonly used to access and update a database (Access – giggle ) 3-tier systems

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 11 Programming the Web ASP HTTP request (form data, HTTP header data) HTTP response HTML, XML ASP page (static HTML + server-side logic)

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 12 Introduction to.NET What is.NET? A vision web sites will be joined by web services new smart devices will join the PC user interfaces will become more adaptable and customizable enabled by web standards

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 13 A platform the.NET Framework Visual Studio.NET.NET Enterprise Servers database, messaging, integration, commerce, proxy, security, mobility, orchestration, content management.NET Building Block Services Passport.NET My Services (“Hailstorm”) goal: make it incredibly easy to build powerful web applications and web services Introduction to.NET What is.NET? } The focus of this course

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 14 A business model software as a service subscription-based services application hosting Introduction to.NET What is.NET?

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 15 Introduction to.NET The.NET Platform Web Form.NET Framework Windows and Linux and… Web Service.NET Foundation Web Services Your Internal Web Service Third-Party Web Services.NET Enterprise Servers ClientsApplications Protocols: HTTP, HTML, XML, SOAP, UDDI Tools: Visual Studio.NET, Notepad

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 16 The Microsoft.NET Platform Visual Studio.NET.NET Enterprise Servers SQL Server 2005 Win Server 2003 Exchange 2010.NET Framework CLR, C#, ASP.NET, etc..NET Services e.g. Microsoft Passport Operating System e.g. Windows XP, Windows 2000, Linux

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 17 Web Services A programmable application component accessible via standard web protocols The centre of the.NET architecture Exposes functionality over the Web Built on existing and emerging standards HTTP, XML, SOAP, UDDI, WSDL, …

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 18 Web Services Evolution of the Web Generation 2 Web Applications HTML Generation 1 Static HTML HTML HTML, XML Generation 3 Web Services XML

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 19 A set of technologies for developing and using components to create: web forms web services windows applications Supports the software lifecycle development debugging deployment maintenance The.NET Framework What Is the.NET Framework?

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 20 The Microsoft.NET Framework XML based Web Services Web Forms ASP.NET Windows Forms Library classes for accessing data and XML (ADO.NET, SQL, XML, XSLT, LINQ) Library Framework Base classes (IO, string, collections, security) Common Language Runtime

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 21 Common Language Specification Common Language Runtime VBC++C# ASP.NET: Web Services and Web Forms JScript… Windows Forms.NET Framework Base Classes ADO.NET: Data and XML Visual Studio.NET The.NET Framework The.NET Framework and Visual Studio.NET

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 22 System.Data Design OLEDB SQLTypes SQL System Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess SecurityRuntime InteropServices Remoting Serialization System.Xml XPath XSLTSerialization System.Web ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing The.NET Framework.NET Framework Classes System.Windows.Forms FormButton MessageBoxListControl

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 23 Common Language Runtime Goals Development services deep cross-language interoperability increased productivity Deployment services simple, reliable deployment fewer versioning problems – NO MORE ‘DLL HELL’ Run-time services performance scalability availability reliability security safety

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 24 Common Language Runtime Programs can run on any platform for which the CLR has been implemented just like the JVM The CLR is no longer only available for Microsoft operating systems there are initiatives to port to other platforms Mono on Linux released 24 th Nov 2004 seems to be making itself useful for.NET apps on Android CLR gives language integration a class written in one language can be used by a class written in another share exactly the same libraries one API to learn

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 25 Source Code C++, C#, VB or any.NET language csc.exe or vbc.exe Compiler Assembly DLL or EXE Common Language Runtime Compilation

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 26 Common Language Runtime Program written in any.NET supported language C#, VB.NET, etc. Intermediate Language (IL) - like Java bytecode (.exe or.dll) compile Common Language Runtime Loads and executes code, garbage collects etc

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 27 Common Language Runtime Services Code management Conversion of MSIL to native code Loading and execution of managed code Creation and management of metadata Verification of type safety Insertion and execution of security checks Memory management and isolation Garbage collection Handling exceptions across languages Interoperation between.NET Framework objects, COM objects and Win32 DLLs Automation of object layout for late binding Developer services (profiling, debugging, etc.)

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 28 Common Type System (CTS) superset of the data types used by most modern programming languages Common Language Specification (CLS) subset of CTS that allows code written in different languages to interoperate What languages? Microsoft - C#, C++, VB.NET, Jscript third party Perl, Ada, Cobol, Java, Fortran, Delphi Eiffel, Smalltalk, Scheme, Oberon, Haskell, Python,… only practical if the language supports some sort of encapsulation Common Language Runtime Multiple Language Support

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 29 Windows Forms Framework for building “rich clients” Built upon.NET Framework, languages Rapid Application Development (RAD) Visual inheritance (?) Anchoring and docking Rich set of controls Extensible controls Data-aware Easily hooked into Web Services ActiveX support Licensing support Printing support Advanced graphics

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 30 Web Forms Built with ASP.NET logical evolution of ASP similar development model: edit the page and go Requires less code actually more code but less programming New programming model event-driven/server-side controls rich controls (e.g. data grid, validation) data binding controls generate browser-specific code simplified handling of page state

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 31 Web Forms Allows separation of UI and business logic separation of concerns is a good thing cleaner, more maintainable code no more VB Uses.NET languages not just scripting Easy to use components XCOPY/FTP deployment

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 32 Web Forms Caching (pages, fragments, custom) Scalable session state management Tracing support ASP.NET is extensible no ISAPI / ASP dichotomy

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 33 Languages C # New language created for.NET a Java rip-off Safe, productive evolution of C++ but not as safe as Java until M$ sort out the exception handling and the pointers Key concepts: component-oriented everything is an object robust and durable code preserving your investment whatever that means Submitted to the ECMA for standardization

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 34 Languages Visual Basic.NET Modernizes and simplifies Visual Basic because the old VB was pants no really – it was truly awful Now provides inheritance threading exception handling Support for late binding whatever that is Actually just C# with a different syntax almost

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 35 Conclusion dotNET is pretty neat really even if it does come from M$ A whole lot of good ideas have been gathered together without the accumulation of legacy bugware is observed in other M$ products Although.NET initially looked like another attempt by Mr Evil to take over the world it is remarkably open and standard compliant compared with other M$ offerings The best bit is probably Visual Studio with it’s tooled up approach to application development

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 36 More Resources.NET msnews.microsoft.com news server microsoft.public.dotnet.general newsgroup XML

Introduction to ASP.NET © K.M. 2/11/2007 the University of Greenwich 37 Questions