Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd

Similar presentations


Presentation on theme: "Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd"— Presentation transcript:

1 Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd mtaulty@microsoft.com www.mtaulty.com

2 .NET Application Architecture Taken from MSDN Patterns & PracticesMSDN Patterns & Practices

3 Agenda “Server Side” Programming Working with Data Exposing Web Services with ASP.NET Using COM+ Component Services “Client” Side Programming Web browser interfaces with ASP.NET Smart Client interfaces with Windows Forms Mobile device interfaces

4 Working with Data Three main types of data representation in.NET Relational data Hierarchical XML data Object graphs Sometimes we need to overlap these representations

5 Relational Data – ADO.NET Evolution of ActiveX Data Objects (ADO) Some common concepts Simpler, more transparent object model Designed for distributed applications Supports stateless scenarios Supports loosely coupled scenarios Supports disconnected scenarios Better interoperability Provides a relational XML bridge

6 ADO.NET Architecture.NET Data Provider DataReader Command Connection Sync Controls, Designers, Code-gen, etc DataSet XmlReader XSL/T, X-Path, etc XmlData- Document DataAdapter

7 Working with relational data

8 Working with XML XPath XSL/T XmlReader XML 1.0 Namespaces Schemas XslTransform XPathNavigator XmlDocument, XPathDocument XmlNode XmlElement XmlAttribute W3C XML DOM Level 2 Core XmlWriter XmlSchema XmlSchema XmlSerialization XmlSerialization

9 Working with XML

10 Agenda “Server Side” Programming Working with Data Exposing Web Services with ASP.NET Using COM+ Component Services “Client” Side Programming Web browser interfaces with ASP.NET Smart Client interfaces with Windows Forms Mobile device interfaces

11 SOAP Web Services consumers can send and receive messages using XML Web Services consumers can send and receive messages using XML WSDL Web Services Description Language Web Services are defined in terms of the formats and ordering of messages Web Services are defined in terms of the formats and ordering of messages Built using open Internet protocols Built using open Internet protocols XML & HTTP What Is A Web Service? A programmable application component accessible via standard Web protocols Open Internet Protocols Web Service UDDI Universal Description, Discovery, and Integration Provide a Directory of Services on the Internet Provide a Directory of Services on the Internet

12 ASP.NET Web Services Declarative model -.NET attributes control working.NET class methods exposed over web service protocols Key attributes WebMethod, WebService Developer writes an.ASMX file for a service which points to the class providing implementation Xml Serialization XML->Parameters->Return Values->XML SOAP messages automatically populated WSDL documents automatically created Tools for generating web service proxies

13 Creating and consuming ASP.NET Web Services

14 Agenda “Server Side” Programming Working with Data Exposing Web Services with ASP.NET Using COM+ Component Services “Client” Side Programming Web browser interfaces with ASP.NET Smart Client interfaces with Windows Forms Mobile device interfaces

15 Origins of Component Services COM+ provides complimentary services to.NET objects COM+ provides services to middle-tier objects, for enterprise-scale distributed applications COMCOM+ MTS Kernel Mode Services IISCOM+MSMQ.NET Framework Visual Studio.NET

16 Services for.NET Components Services Full range available to.NET components Transactions, Just in Time Activation, Role based security Object pooling and construction Queued components, Loosely Coupled Events Application pooling, recycling, partitioning Services span.NET and other components For.NET components Derive from base class ServicedComponent Declaratively specify COM+ requirements Register with regsvcs.exe tool

17 Using Component Services

18 Agenda “Server Side” Programming Working with Data Exposing Web Services with ASP.NET Using COM+ Component Services “Client” Side Programming Web browser interfaces with ASP.NET Smart Client interfaces with Windows Forms Mobile device interfaces

19 ASP.NET Server controls encapsulate behaviour Provide VB-Like Model Support compiled languages VB, C#, JScript, COBOL, etc. Enable separation of code from content Developers and designers can work independently Support multiple clients automatically Rich DHTML, HTML 3.2, etc… Mobile controls for small devices

20 ASP.NET Page = Control Tree Name: LiteralControl Page TextBox HtmlForm.ASPX Page

21 ASP.NET Application Services Application & Session State Session state storage choice Caching Flexible data cache Parameterised output caching for pages and controls Data Binding Diagnostics Applicaton & Page Level tracing system Performance monitor counters Security Authentication and Authorization Configuration System

22 ASP.NET User Interfaces

23 Agenda “Server Side” Programming Working with Data Exposing Web Services with ASP.NET Using COM+ Component Services “Client” Side Programming Web browser interfaces with ASP.NET Smart Client interfaces with Windows Forms Mobile device interfaces

24 Windows Forms OO Class library for building smart clients Combines best of VB Forms, MFC and WFC Provides advanced features Visual forms inheritance, automatic layout Advanced graphics support – GDI+ Rich set of controls Create controls by derivation or composition Controls can be browser-hosted Controls support data binding Interoperate with existing ActiveX controls

25 Client Application Types Thick, thin, smart? Smart Clients Makes use of capabilities of the device to provide the best experience Manages content changes efficiently Manages deployment & updates effectively Provides online/offline capabilities Decision points Platform, User Experience, Deployment, Online/Offline

26 Deployment & Offline Deployment Zero Touch Deployment in.NET Framework V1.1 Updater Application Block for.NET Best practise for building a client which automatically installs & updates itself Code, documentation, sample applications Online/Offline Smart Client Offline Block on MSDN Architectural model for adding offline capabilities to a smart client Code, documentation, sample applications

27 Windows Forms User Interfaces

28 Agenda “Server Side” Programming Working with Data Exposing Web Services with ASP.NET Using COM+ Component Services “Client” Side Programming Web browser interfaces with ASP.NET Smart Client interfaces with Windows Forms Mobile device interfaces

29 .NET Compact Framework.NET Framework for Smart Devices Goal: software as a service for devices Lightweight runtime architecture Compatible subset Develop in Visual Studio.NET Adaptable to different needs Broad availability planned… Multiple CPUs Windows CE and other RTOSes Variety of physical form factors

30 Device User Interfaces

31 Resources www.microsoft.com/uk/msdn/events/post_events.asp http://www.asp.net http://www.windowsforms.net http://www.gotdotnet.com http://msdn.microsoft.com/netframework http://msdn.microsoft.com/patterns mtaulty@microsoft.com http://mtaulty.com

32 © 2004 Microsoft Limited. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.


Download ppt "Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd"

Similar presentations


Ads by Google