1 / 30

OVERVIEW: .NET

OVERVIEW: .NET. .NET Overview. Introduction to .NET Web Services The .NET Framework Common Language Runtime Windows Forms Web Forms ADO.NET Languages. Introduction to .NET What is .NET?. A vision of how information technology will evolve A platform that supports the vision

Download Presentation

OVERVIEW: .NET

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OVERVIEW: .NET

  2. .NET Overview • Introduction to .NET • Web Services • The .NET Framework • Common Language Runtime • Windows Forms • Web Forms • ADO.NET • Languages

  3. Introduction to .NETWhat is .NET? • A vision of how information technology will evolve • A platform that supports the vision • A business model of software as a service

  4. Introduction to .NETWhat 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

  5. Introduction to .NETWhat is .NET? • 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: To facilitate building powerful Web applications and Web services } The focus of this course

  6. Introduction to .NETWhat is .NET? • A business model • Software as a service • Subscription-based services • Application hosting, e.g. bCentral

  7. .NET FoundationWeb Services Your InternalWeb Service Third-PartyWeb Services .NET EnterpriseServers Clients Applications Web Form Web Service .NET Framework Windows Introduction to .NETThe .NET Platform Protocols: HTTP,HTML, XML, SOAP, UDDI Tools:Visual Studio.NET,Notepad

  8. Web Services • A programmable application component accessible via standard Web protocols • The center of the .NET architecture • Exposes functionality over the Web • Built on existing and emerging standards • HTTP, XML, SOAP, UDDI, WSDL, …

  9. HTML, XML HTML, XML HTML HTML Generation 1Static HTML Generation 2Web Applications Generation 3Web Services Web ServicesEvolution of the Web

  10. The .NET FrameworkWhat Is the .NET Framework? • A set of technologies for developing and using components to create: • Web Applications • Web Services • Windows Applications • Supports the software lifecycle • Development • Debugging • Deployment • Maintenance

  11. The .NET FrameworkThe .NET Framework and Visual Studio.NET … VB C++ C# JScript Common Language Specification ASP.NET: Web Services and Web Forms WindowsForms Visual Studio.NET ADO.NET: Data and XML .NET Framework Base Classes Common Language Runtime

  12. System.Windows.Forms System.Web Form Button Services UI Description HtmlControls MessageBox ListControl Discovery WebControls Protocols System.Drawing Caching Security Drawing2D Printing Configuration SessionState Imaging Text System.Data System.Xml OLEDB SQL XSLT Serialization Design SQLTypes XPath System Collections IO Security Runtime InteropServices Configuration Net ServiceProcess Remoting Diagnostics Reflection Text Serialization Globalization Resources Threading The .NET Framework.NET Framework Classes

  13. Common Language RuntimeGoals • 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

  14. Source Code Assembly C++, C#, VB or any .NET language DLL or EXE Common Language RuntimeCompilation Compiler csc.exe or vbc.exe

  15. Common Language RuntimeAssemblies • Assembly • Logical unit of deployment • Contains Manifest, Metadata, MSIL and resources • Manifest • Metadata about the components in an assembly (version, types, dependencies, etc.) • Type Metadata • Completely describes all types defined in an assembly: properties, methods, arguments, return values, attributes, base classes, …

  16. Common Language RuntimeAssemblies • Microsoft Intermediate Language (MSIL, IL) • All languages compile to IL (managed code) • IL is always compiled to native code before being executed • Resources • E.g. .bmp, .jpg

  17. Ngen Common Language RuntimeExecution Model Source code VB C# C++ Compiler Compiler Compiler Assembly Assembly Assembly MSIL Common Language Runtime JIT Compiler CLR Native code Managed Code Managed Code Managed Code Unmanaged Code CLR Services Operating System Services

  18. 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 Handling exceptions across languages Interoperation between .NET Framework objects and COM objects and Win32 DLLs Automation of object layout for late binding Developer services (profiling, debugging, etc.) Common Language RuntimeServices

  19. Common Language RuntimeMultiple Language Support • Common Type System (CTS) • A superset of the data types used by most modern programming languages • Common Language Specification (CLS) • A subset of CTS that allows code written in different languages to interoperate • What languages? • Microsoft: C++, Visual Basic, C#, JScript • Third-Party: Cobol, Eiffel, Smalltalk, Scheme, Oberon, Haskell, Java, Python, Perl, …

  20. Common Language RuntimeApplications • An application consists of one or more assemblies • How does one assembly bind to another? • Based upon metadata and policy • Local (preferred) • Assembly Global Cache • Multiple versions of an assembly may exist on the same machine • Easier software deployment, updates and removal • Multiple versions of an assembly can even be used by the same application

  21. Common Language RuntimeSecurity • Evidence-based security (authentication) • Based on user identity and code identity • Configurable policies • Imperative and declarative interfaces

  22. 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 Windows Forms

  23. Web Forms • Built with ASP.NET • Logical evolution of ASP • Similar development model: edit the page and go • Requires less code • 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

  24. Web Forms • Allows separation of UI and business logic • Uses .NET languages • Not just scripting • Easy to use components • XCOPY/FTP deployment • Simple configuration (XML-based)

  25. Web Forms • Caching (pages, fragments, custom) • Scalable session state management • Tracing support • ASP.NET is extensible • No ISAPI / ASP dichotomy • Automatic process rollover • Forms-based authentication

  26. ADO.NET • Similar to ADO • Language-neutral data access • Supports two styles of data access • Disconnected • Forward-only, read-only access • Supports data binding • DataSet: a collection of tables • Can view and process data relationally (tables) or hierarchically (XML)

  27. LanguagesC# • New language created for .NET • Safe, productive evolution of C++ • Key concepts: • Component-oriented • Everything is an object • Robust and durable code • Preserving your investment • Submitted to ECMA for standardization • Uses .NET Framework classes

  28. LanguagesVisual Basic.NET • Modernizes and simplifies Visual Basic • Inheritance • Threading • Exception handling • Support for late binding • Uses .NET Framework classes

  29. More Resources • HTTP • http://msdn.microsoft.com/library/periodic/period96/protocol.htm • HTTP Essentials, Stephen Thomas, 2001, Wiley, ISBN 0471-39823-3 • Cookies • http://msdn.microsoft.com/library/default.asp?URL=/library/partbook/instantj/cookies.htm • MIME • http://www.ufaq.org/navcom/mime_tutorial.html • http://www.irvine.com/~mime/ • Networks • http://msdn.microsoft.com/library/periodic/period99/ntp99b3.htm

  30. More Resources • XML • http://msdn.microsoft.com/xml/default.asp • http://www.w3.org/XML/ • Essential XML, Don Box, Aaron Skonnard, John Lam, Addison Wesley, 2000, ISBN 0-201-70914-7 • .NET • http://www.microsoft.com/net/ • http://msdn.microsoft.com/net/ • http://www.gotdotnet.com • msnews.microsoft.com news server • microsoft.public.dotnet.general newsgroup

More Related