100 likes | 254 Views
Session 1: Introduction to Course. Outline. The .NET Framework Common Language Runtime What is ASP.NET? Multiple Language Support Runtime Compilation and Execution Classes and Namespaces Visual Studio .NET. Message Queuing. COM+ (Transactions, Partitions, Object Pooling). IIS. WMI.
E N D
Outline • The .NET Framework • Common Language Runtime • What is ASP.NET? • Multiple Language Support • Runtime Compilation and Execution • Classes and Namespaces • Visual Studio .NET
Message Queuing COM+ (Transactions, Partitions, Object Pooling) IIS WMI The .NET Framework Components Visual Basic C++ C# Perl Python … XML Web Services User Interface ASP.NET ADO.NET and XML .NET Framework Class Library Common Language Runtime Win32
The Common Language Runtime • The .NET Framework is designed to support many languages • More than 20 languages currently supported • VB.NET, C#, and Jscript are the most widely used • One runtime for all . NET-Based Languages • Manages threads and memory • Enforces code security • Eliminates DLL versioning problems • Multiple versions of a DLL can run simultaneously • Applications can specify a version of a DLL to use
What is ASP.NET? • Evolutionary, more flexible successor to ASP • Dynamic Web pages that can access server resources • Server-side processing of Web Forms • XML Web services let you create distributed Web applications • Functionality of .NET classes is universally available • Code is organized into hierarchical namespaces and classes • Browser independent • Language independent
Multiple Language Support • Visual Basic .NET • is the latest version of Visual Basic • true object-oriented language • C# • is a new language • true object-oriented language • similar to Java, Visual C++, and Pascal • And Others … • Jscript, COBOL, C++
Choosing a Language • .NET Framework class library is the same regardless of language • Performance • All languages are compiled to MSIL • Only performance difference is how each language compiler compiles to MSIL • The runtime compiles all MSIL the same, regardless of its origin • Development experience • VB.NET is similar to Visual Basic • C# is similar to Java, C++, and Pascal • Browser compatibility • ASP.NET code is server-side code, so browser compatibility is not an issue
Which language? Visual Basic .NETcompiler MSIL C#compiler JITcompiler Runtime Compilation and Execution default.aspx C# code Visual Basic .NET code HTML Database Runtime Nativecode
Classes and Namespaces • Classes are categories of objects that share common properties and methods • Object Classes vs. Object Instances • Namespaces refer to specific paths that lead to classes • Logical, not physical, grouping • Namespaces are hierarchical • e.g., System.Data, System.Web • Imports keyword in Visual Basic .NET code Imports System.Data.SqlClient
Visual Studio .NET: The Tool for .NET Development Web Forms Tools Windows Forms Tools Visual Studio .NET Multiple Languages Error Handling Web Services Tools Data Access Design Develop Debug Deploy