361 likes | 454 Views
Presentation. ON. .NET Framework. Faculty:. Mr. Gaurav Ganger. Developed By:. AJAY BAHORIYA. Introduction to .NET Web Services The .NET Framework Common Language Runtime Windows Forms Web Forms ADO.NET Languages. .NET Overview.
E N D
NIIT, South Ex Presentation ON .NET Framework
Faculty: NIIT, South Ex Mr. Gaurav Ganger Developed By: AJAY BAHORIYA
Introduction to .NET • Web Services • The .NET Framework • Common Language Runtime • Windows Forms • Web Forms • ADO.NET • Languages NIIT, South Ex .NET Overview
A vision of how information technology will evolve A platform that supports the vision A business model of software as a service NIIT, South Ex 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 NIIT, South Ex 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: make it incredibly easy to build powerful Web applications and Web services NIIT, South Ex Introduction to .NETWhat is .NET? } The focus of this course
A business model • Software as a service • Subscription-based services • Application hosting, e.g. bCentral NIIT, South Ex Introduction to .NETWhat is .NET?
.NET FoundationWeb Services Your InternalWeb Service Third-PartyWeb Services .NET EnterpriseServers Clients Applications Web Form Web Service .NET Framework Windows NIIT, South Ex Introduction to .NETThe .NET Platform Protocols: HTTP,HTML, XML, SOAP, UDDI Tools:Visual Studio.NET,Notepad
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, … NIIT, South Ex Web Services
HTML, XML HTML, XML HTML HTML Generation 1Static HTML Generation 2Web Applications Generation 3Web Services NIIT, South Ex Web ServicesEvolution of the Web
VB, C#, … Build Assembly: geom.dll SQL Data Definition: create assembly … create function … create procedure … create trigger … create type … SQL Server SQL Queries: SELECT name FROM Supplier WHERE Location.Distance ( @point ) < 3 NIIT, South Ex SQL CLR Functionality VS .NET Project Define Location.Distance() CLR hosted by SQL (in-proc)
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 NIIT, South Ex The .NET FrameworkWhat Is the .NET Framework?
NIIT, South Ex 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
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 NIIT, South Ex The .NET Framework.NET Framework Classes
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 NIIT, South Ex Common Language RuntimeGoals • Reliability • Security • Safety
Source Code Assembly C++, C#, VB or any .NET language DLL or EXE NIIT, South Ex Common Language RuntimeCompilation Compiler csc.exe or vbc.exe
Assembly Language Compiler Native Code JIT Compiler Execution NIIT, South Ex Compilation And Execution Compilation Code (IL) Source Code Metadata At installation or the first time each method is called
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, … NIIT, South Ex 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 NIIT, South Ex Common Language RuntimeAssemblies
Ngen NIIT, South Ex 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
NIIT, South Ex Common Language RuntimeServices • 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 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, … NIIT, South Ex Common Language RuntimeMultiple Language Support
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 NIIT, South Ex Common Language RuntimeApplications
Evidence-based security (authentication) Based on user identity and code identity Configurable policies Imperative and declarative interfaces NIIT, South Ex Common Language RuntimeSecurity
NIIT, South Ex 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
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 NIIT, South Ex 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) NIIT, South Ex 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 NIIT, South Ex Web Forms
Similar to ADO, but better factored • 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) NIIT, South Ex ADO.NET
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 NIIT, South Ex LanguagesC#
Modernizes and simplifies Visual Basic • Inheritance • Threading • Exception handling • Support for late binding • Uses .NET Framework classes NIIT, South Ex LanguagesVisual Basic.NET
.NET Framework 1.1 This is the first major .NET Framework upgrade. It is available on its own as a redistributable package or in a software development kit, and was published on 3 April 2003. It is also part of the second release of Microsoft Visual Studio .NET (released as Visual Studio .NET 2003). This is the first version of the .NET Framework to be included as part of the Windows operating system, shipping with Windows Server 2003. Mainstream support for .NET Framework 1.1 ended on 14 October 2008, and extended support ends on 8 October 2013. Since .NET 1.1 is a component of Windows Server 2003, extended support for .NET 1.1 on Server 2003 will run out with that of the OS – currently 14 July 2015. .NET 1.1 is the last available version for Windows NT 4.0. If .NET Framework 1.0 is removed, installing only .NET Framework 1.1 also provides the system support for version 1.0, except in rare instances where an application will not run because it checks the version number of a library. NIIT, South Ex
.NET Framework 2.0 • Released with Visual Studio 2005, Microsoft SQL Server 2005, and BizTalk 2006. • The 2.0 Redistributable Package can be downloaded for free from Microsoft, and was • published on 22 January 2006. • The 2.0 Software Development Kit (SDK) can be downloaded for free from Microsoft. • It is included as part of Visual Studio 2005 and Microsoft SQL Server 2005. • Version 2.0 without any Service Pack is the last version with support for Windows 98 • and Windows Me • . Version 2.0 with Service Pack 2 is the last version with official support for • Windows 2000 • although there have been • some unofficial workarounds published online to use a subset of the functionality • from Version 3.5 • in Windows 2000.[19] Version 2.0 • with Service Pack 2 requires Windows 2000 with SP4 plus KB835732 or • KB891861 update, • Windows XP with SP2 or later and • Windows Installer 3.1 (KB893803-v2) • It shipped with Windows Server 2003 R2 (not installed by default). NIIT, South Ex
Changes in 2.0 in comparison with 1.1 • Generics • Language support for generics built directly into the .NET CLR. • Full 64-bit support for both the x64 and the IA64 hardware platforms. • Numerous API changes. • SQL Server integration – .NET 2.0, VS 2005, and SQL Server 200 • 5 are all tied together. This means that instead of using T-SQL, one • can build stored procedures and triggers in any of the .NET-compatible • languages. • A new hosting API for native applications wishing to host an instance • of the .NET runtime. The new API gives a fine grain control on • the behavior of the runtime with regards to multithreading, • memory allocation, assembly loading and more • . It was initially developed to efficiently host the runtime in • Microsoft SQL Server, which implements its own scheduler and memory • manager. NIIT, South Ex
Comparison contd……… • Many additional and improved ASP.NET web controls. • New data controls with declarative data binding. • New personalization features for ASP.NET, • such as support for themes, skins, master pages and webparts. • .NET Micro Framework – a version of the .NET Framework • related to the Smart Personal Objects Technology initiative. • Membership provider • Partial classes • Nullable types • Anonymous methods • Iterators • Data tables NIIT, South Ex
Internet Technologies Programming Languages and Paradigms Programming the Web .NET Overview NIIT, South Ex Conclusion