+ All Categories
Home > Documents > DotNET-Framework-Overview SP Beniwal

DotNET-Framework-Overview SP Beniwal

Date post: 08-Apr-2018
Category:
Upload: sp-beniwal
View: 221 times
Download: 0 times
Share this document with a friend
52
Transcript

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 1/55

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 2/55

.NET Applications And Scope

ERP & BillingCustomer 

Service

Sales

UsersAny device,

Any place,Any time

XML Web

ServicesIntegrate businessapplications andprocesses

Back OfficeHeterogeneousapplication andserver infrastructure

SchedulingAuthentication

Notification

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 3/55

So what is .NET?So what is .NET?

.. Net is a new framework for developing web-based andwindows-based applications within

the Microsoft environment. It’s justIt’s justlike Windows, except distributedlike Windows, except distributedover the Internet.over the Internet.

It exports a common interface soIt exports a common interface so

that it’s programs can be run on anythat it’s programs can be run on anysystem that supports .NET.system that supports .NET.

.. Net is a new framework for developing web-based andwindows-based applications within

the Microsoft environment. It’s justIt’s justlike Windows, except distributedlike Windows, except distributedover the Internet.over the Internet.

It exports a common interface soIt exports a common interface so

that it’s programs can be run on anythat it’s programs can be run on anysystem that supports .NET.system that supports .NET.

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 4/55

.NET Framework.NET Framework.NET Framework.NET Framework

Programming model for .NETProgramming model for .NET Platform for running .NET managedPlatform for running .NET managed

code in a virtual machinecode in a virtual machine

Provides a very good environmentProvides a very good environmentto develop networked applicationsto develop networked applicationsand Web Servicesand Web Services

Provides programming API andProvides programming API andunified language-independentunified language-independentdevelopment frameworkdevelopment framework

Programming model for .NETProgramming model for .NET Platform for running .NET managedPlatform for running .NET managed

code in a virtual machinecode in a virtual machine

Provides a very good environmentProvides a very good environmentto develop networked applicationsto develop networked applicationsand Web Servicesand Web Services

Provides programming API andProvides programming API andunified language-independentunified language-independentdevelopment frameworkdevelopment framework

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 5/55

  .NET.NET  Framework:Framework:

FCLFCL

  CLRCLR

Framework Class LibraryFramework Class Library

Common Language RuntimeCommon Language Runtime

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 6/55

The .NET Framework LibraryThe .NET Framework Library

Base Class LibraryBase Class Library

ADO.NET and XMLADO.NET and XML

Web Forms   Web ServicesWeb Forms   Web Services

Mobile Internet ToolkitMobile Internet Toolkit

WindowsWindows

FormsForms

ASP.NETASP.NET

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 7/55

Framework Class LibraryFramework Class Library

Provides the core functionality for:Provides the core functionality for: ASP.NET, Web Services, ADO.NET,ASP.NET, Web Services, ADO.NET,

Windows Forms, IO, XML, etc.Windows Forms, IO, XML, etc.

A standard set of inbuilt  classesA standard set of inbuilt  classeswhich are used to develop webwhich are used to develop webapplication , window application,application , window application,consol application.consol application.

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 8/55

SystemSystem

GlobalizationGlobalization

DiagnosticsDiagnostics

ConfigurationConfiguration

CollectionsCollections

ResourcesResources

ReflectionReflection

NetNet

IOIO

ThreadingThreading

TextText

ServiceProcessServiceProcess

SecuritySecurity RuntimeRuntime

InteropServicesInteropServices

RemotingRemoting

SerializationSerialization

System.DataSystem.Data

DesignDesign

ADOADO

SQLTypesSQLTypes

SQLSQL

System.XmlSystem.Xml

XPathXPath

XSLTXSLT SerializationSerialization

System.WebSystem.Web

ConfigurationConfiguration SessionStateSessionState

CachingCaching SecuritySecurity

ServicesServices UIUI

HtmlControlsHtmlControls

WebControlsWebControls

DescriptionDescription

DiscoveryDiscovery

ProtocolsProtocols System.DrawingSystem.Drawing

ImagingImaging

Drawing2DDrawing2D

TextText

PrintingPrinting

System.WinFormsSystem.WinForms

DesignDesign ComponentModelComponentModel

.NET Framework Namespaces.NET Framework Namespaces

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 9/55

Base Class Library NamespacesBase Class Library Namespaces

SystemSystem

ThreadingThreading

TextText

ServiceProcessServiceProcess

SecuritySecurity

ResourcesResources

ReflectionReflection

NetNet

IOIO

GlobalizationGlobalization

DiagnosticsDiagnostics

ConfigurationConfiguration

CollectionsCollections

RuntimeRuntime

SerializationSerialization

RemotingRemoting

InteropServicesInteropServices

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 10/55

Base Class LibraryBase Class Library

Data types, conversions, formattingData types, conversions, formatting Collections:Collections: ArrayList, HashtableArrayList, Hashtable, etc., etc.

Globalization:  Cultures, sorting, etc.Globalization:  Cultures, sorting, etc.

I/O:  Binary and text streams, files, etc.I/O:  Binary and text streams, files, etc.

Networking:  HTTP, TCP/IP sockets, etc.Networking:  HTTP, TCP/IP sockets, etc.

Reflection:  Metadata and IL emitReflection:  Metadata and IL emit

Security:  Permissions, cryptographySecurity:  Permissions, cryptography

Text:  Encodings, regular expressionsText:  Encodings, regular expressions

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 11/55

Common Language RuntimeCommon Language Runtime

Compiler For All languages in .netCompiler For All languages in .net MSIL CodeMSIL Code

Memory managementMemory management

Garbage collectionGarbage collection

Language integrationLanguage integration Multiple versioning support                  Multiple versioning support                  

hell!)hell!)

Integrated securityIntegrated security

Thread managementThread management

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 12/55

Managed CodeManaged Code

Code that targets the CLR is referred toCode that targets the CLR is referred toas managed codeas managed code

All managed code has the features of All managed code has the features of the CLRthe CLR Object-orientedObject-oriented Type-safeType-safe Cross-language integrationCross-language integration

Cross language exception handlingCross language exception handling Multiple version supportMultiple version support

Managed code is represented in specialManaged code is represented in special

Intermediate Language (IL)Intermediate Language (IL)

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 13/55

Automatic Memory ManagementAutomatic Memory Management

The CLR manages memory for managed codeThe CLR manages memory for managed code All allocations of objects and buffers made fromAll allocations of objects and buffers made from

aa Managed HeapManaged Heap

Unused objects and buffers are cleaned upUnused objects and buffers are cleaned up

automatically throughautomatically through Garbage CollectionGarbage Collection Some of the worst bugs in softwareSome of the worst bugs in software

development are not possible with manageddevelopment are not possible with managedcodecode

Leaked memory or objectsLeaked memory or objects References to freed or non-existent objectsReferences to freed or non-existent objects

Reading of uninitialised variablesReading of uninitialised variables

PointerlessPointerless

environmentenvironment

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 14/55

Multiple Language SupportMultiple Language Support

IL (MSIL or CIL) – Intermediate LanguageIL (MSIL or CIL) – Intermediate Language

It is low-level (machine) language, likeIt is low-level (machine) language, like

Assembler, but is Object-orientedAssembler, but is Object-oriented  

CTS is a rich type system built into the CLRCTS is a rich type system built into the CLR Implements various types (Implements various types (intint, float, string, …), float, string, …)

And operations on those typesAnd operations on those types

CLS is a set of specifications that allCLS is a set of specifications that alllanguages and libraries need to followlanguages and libraries need to follow

This will ensure interoperability betweenThis will ensure interoperability betweenlanguageslanguages

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 15/55

Intermediate LanguageIntermediate Language

.NET languages are compiled to an.NET languages are compiled to anIntermediate Language (IL)Intermediate Language (IL)

IL is also known as MSIL or CILIL is also known as MSIL or CIL

CLR compiles IL in just-in-time (JIT)CLR compiles IL in just-in-time (JIT)manner – each function is compiledmanner – each function is compiledjust before executionjust before execution

The JIT code stays in memory for The JIT code stays in memory for subsequent callssubsequent calls

Recompilations of assemblies areRecompilations of assemblies arealso possiblealso possible

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 16/55

Example of MSIL CodeExample of MSIL Code

.method private hidebysig static void  Main().method private hidebysig static void  Main()cil managed cil managed 

{{  .entrypoint.entrypoint

  // Code size       11 (0xb)// Code size       11 (0xb)

  .maxstack  8.maxstack  8  IL_0000:  ldstr      "Hello, world!"IL_0000:  ldstr      "Hello, world!"

  IL_0005:  call       void IL_0005:  call       void [mscorlib]System.Console::WriteLine(string)[mscorlib]System.Console::WriteLine(string)

  IL_000a:  retIL_000a:  ret

} // end of method HelloWorld::Main} // end of method HelloWorld::Main

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 17/55

Common Type System (CTS)Common Type System (CTS)

All .NET languages have the same primitiveAll .NET languages have the same primitivedata types.  Andata types.  Anint int in C# is the same as anin C# is the same as an int int   in VB.NETin VB.NET

When communicating between modulesWhen communicating between modules

written in any .NET language, the types arewritten in any .NET language, the types areguaranteed to be compatible on the binaryguaranteed to be compatible on the binarylevellevel

Types can be:Types can be:

Value types – passed by value, stored in theValue types – passed by value, stored in thestackstack Reference types – passed by reference, storedReference types – passed by reference, stored

in the heapin the heap

Strings are a primitive data type nowStrings are a primitive data type now

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 18/55

Common LanguageCommon LanguageSpecification (CLS)Specification (CLS)

Any language that conforms to the CLSAny language that conforms to the CLSis a .NET languageis a .NET language

A language that conforms to the CLSA language that conforms to the CLShas the ability to take full advantage of has the ability to take full advantage of the Framework Class Library (FCL)the Framework Class Library (FCL)

CLS is standardized by ECMACLS is standardized by ECMA

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 19/55

.NET Framework.NET Framework  Common Language RuntimeCommon Language Runtime

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

CLR manages code executionCLR manages code executionat runtimeat runtime

Memory management, threadMemory management, threadmanagement, etc.management, etc.

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 20/55

.NET Framework.NET Framework  Base Class LibraryBase Class Library

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

.NET Framework (Base Class Library).NET Framework (Base Class Library)

Object-oriented collection of Object-oriented collection of reusable typesreusable types

Collections, I/O, Strings, …Collections, I/O, Strings, …

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 21/55

.NET Framework.NET Framework  Data Access Layer Data Access Layer 

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

.NET Framework (Base Class Library).NET Framework (Base Class Library)

ADO .NET and XMLADO .NET and XML

Access relational databasesAccess relational databases

Disconnected data modelDisconnected data model

Work with XMLWork with XML

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 22/55

.NET Framework.NET Framework  ASP.NET & Windows FormsASP.NET & Windows Forms

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

.NET Framework (Base Class Library).NET Framework (Base Class Library)

ADO .NET and XMLADO .NET and XML

ASP .NETASP .NETWeb Forms   Web ServicesWeb Forms   Web Services

Mobile Internet Toolkit Mobile Internet Toolkit 

WindowsWindows

FormsForms

Create application’s front-end –Create application’s front-end –Web-based user interface,Web-based user interface,Windows GUI, Web services, …Windows GUI, Web services, …

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 23/55

.NET Framework.NET Framework  Programming LanguagesProgramming Languages

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

.NET Framework (Base Class Library).NET Framework (Base Class Library)

ADO .NET and XMLADO .NET and XML

ASP .NETASP .NETWeb Forms   Web ServicesWeb Forms   Web Services

Mobile Internet Toolkit Mobile Internet Toolkit 

WindowsWindows

FormsForms

C++C++ C#C# VB.NETVB.NET PerlPerl J#J# ……

Use your favorite languageUse your favorite language

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 24/55

.NET Framework.NET Framework  Common Language SpecificationCommon Language Specification

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

.NET Framework (Base Class Library).NET Framework (Base Class Library)

ADO .NET and XMLADO .NET and XML

ASP .NETASP .NETWeb Forms   Web ServicesWeb Forms   Web Services

Mobile Internet Toolkit Mobile Internet Toolkit 

WindowsWindows

FormsForms

Common Language SpecificationCommon Language SpecificationC++C++ C#C# VBVB PerlPerl J#J# ……

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 25/55

.NET Framework.NET Framework  Visual Studio .NETVisual Studio .NET

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

.NET Framework (Base Class Library).NET Framework (Base Class Library)

ADO .NET and XMLADO .NET and XML

ASP .NETASP .NETWeb Forms   Web ServicesWeb Forms   Web Services

Mobile Internet Toolkit Mobile Internet Toolkit 

WindowsWindows

FormsForms

Common Language SpecificationCommon Language Specification

C++C++ C#C# VBVB PerlPerl J#J# ……

V i sual  S t ud i o .NE T 

V i sual  S t ud i o .NE T 

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 26/55

Operating SystemOperating System

Common Language RuntimeCommon Language Runtime

.NET Framework (Base Class Library).NET Framework (Base Class Library)

ADO .NET and XMLADO .NET and XML

ASP .NETASP .NETWeb Services Web FormsWeb Services Web Forms

Mobile Internet Toolkit Mobile Internet Toolkit 

WindowsWindows

FormsForms

Common Language SpecificationCommon Language Specification

C++C++ C#C# VBVB PerlPerl J#J# ……

V i sual  S t ud i o .NE T 

V i sual  S t ud i o .NE T 

.NET Framework.NET Framework  Standards ComplianceStandards Compliance

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 27/55

.NET Languages.NET Languages

Languages provided by MicrosoftLanguages provided by Microsoft C++, C#, J#, VB.NET,C++, C#, J#, VB.NET, JScriptJScript

Third-parties languagesThird-parties languages

Perl, Python, Pascal, APL, COBOL, Eiffel,Perl, Python, Pascal, APL, COBOL, Eiffel,Haskell, ML, Oberon, Scheme, Smalltalk…Haskell, ML, Oberon, Scheme, Smalltalk…

Advanced multi-language featuresAdvanced multi-language features

Cross-language inheritance andCross-language inheritance andexceptions handlingexceptions handling

Object system is built in, not bolted onObject system is built in, not bolted on No additional rules or API to learnNo additional rules or API to learn

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 28/55

C# LanguageC# Language

Mixture between C++, Java and DelphiMixture between C++, Java and Delphi Component-orientedComponent-oriented

Properties, Methods, EventsProperties, Methods, Events

Attributes, XML documentationAttributes, XML documentation All in one place, no header files, IDL, etc.All in one place, no header files, IDL, etc.

Can be embedded in ASP+ pagesCan be embedded in ASP+ pages

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 29/55

C# Language – ExampleC# Language – Example

using System;using System;

class HelloWorld class HelloWorld {{

public static void main()public static void main(){{Console.WriteLine(“Hello, world!”);Console.WriteLine(“Hello, world!”);

}}}}

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 30/55

Compilation in .NET

Code in VB.NET Code in C#Code in another 

.NET Language

VB.NET compiler C# compiler Appropriate

Compiler 

IL(Intermediate

Language) code

CLR just-in-time

execution

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 31/55

Code Compilation and ExecutionCode Compilation and ExecutionCode Compilation and ExecutionCode Compilation and Execution

CompilationCompilation

BeforeBeforeinstallation or installation or the first timethe first time

each method iseach method is

called called 

BeforeBeforeinstallation or installation or the first timethe first time

each method iseach method is

called called ExecutionExecutionJITJIT

Compiler Compiler NativeNativeCodeCode

MSILMSILCodeCode

MetadataMetadata

SourceSourceCodeCode

LanguageLanguageCompiler Compiler 

Also called Also called Assembly Assembly (.EXE or (.EXE or .DLL file).DLL file)

Also called Also called Assembly Assembly (.EXE or (.EXE or .DLL file).DLL file)

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 32/55

Visual Studio .NETVisual Studio .NET Development tool that contains a rich set of Development tool that contains a rich set of 

productivity and debugging featuresproductivity and debugging features Supports managed and unmanaged applicationsSupports managed and unmanaged applications

Supports C#, C++, VB.NET, …Supports C#, C++, VB.NET, …

Many useful tools and wizardsMany useful tools and wizards

Windows Forms Designer Windows Forms Designer 

ASP.NET Web Forms Designer ASP.NET Web Forms Designer 

Web Services supportWeb Services support

SQL Server integration with ADO.NET and XMLSQL Server integration with ADO.NET and XML

VS.NET is not part of the .NET FrameworkVS.NET is not part of the .NET Framework Not necessary to build or run managed codeNot necessary to build or run managed code

The .NET Framework SDK includes command lineThe .NET Framework SDK includes command line

compilerscompilers

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 33/55

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 34/55

Data And XML NamespacesData And XML Namespaces

System.DataSystem.Data

SQLTypesSQLTypes

SQLClientSQLClient

CommonCommon

OleDbOleDb

System.XmlSystem.Xml

SerializationSerializationXPathXPathXSLTXSLT

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 35/55

ADO.NET And XMLADO.NET And XML

ADO.NET consumes all types of dataADO.NET consumes all types of data XML (hierarchical), relational, etc.XML (hierarchical), relational, etc.

Powerful in-memory data cache (DataSet)Powerful in-memory data cache (DataSet) DataSet contains various data objects:DataSet contains various data objects:

tables, views, relations, constraints, etc.tables, views, relations, constraints, etc. Lightweight, stateless, disconnectedLightweight, stateless, disconnected Supports both relational and XML accessSupports both relational and XML access

High-performance, low overhead streamHigh-performance, low overhead streamaccessaccess Great XML support including:Great XML support including:

W3C DOM, XSL/T, XPath, and SchemaW3C DOM, XSL/T, XPath, and Schema

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 36/55

VS.NET – DataSet Designer VS.NET – DataSet Designer 

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 37/55

Windows Forms NamespacesWindows Forms Namespaces

System.DrawingSystem.Drawing

Drawing2DDrawing2D

ImagingImaging

PrintingPrinting

TextText

System.Windows.FormsSystem.Windows.Forms

DesignDesign ComponentModelComponentModel

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 38/55

Windows FormsWindows Forms

Windows Forms is framework for building rich GUI applications RAD (Rapid Application Development) component-based

event-driven Rich set of controls Data aware components

ActiveX® Support Printing support Unicode support UI inheritance

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 39/55

Windows FormsWindows Forms

Combines VB and Delphi forms with theCombines VB and Delphi forms with thepower of MFCpower of MFC Delegation as well as subclassingDelegation as well as subclassing

Advanced featuresAdvanced features Visual forms inheritance, automatic layoutVisual forms inheritance, automatic layout Advanced graphics support – GDI+Advanced graphics support – GDI+ Easy access to Win32Easy access to Win32® ® APIAPI

Controls can be hosted in IE 5.xControls can be hosted in IE 5.x No installation, registration or No installation, registration or GUIDsGUIDs

Code access securityCode access security

VS NET Wi d FVS NET Windows Forms

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 40/55

VS.NET – Windows FormsVS.NET – Windows FormsDesigner Designer 

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 41/55

Framework for building Web applications andFramework for building Web applications andWeb services in any .NET languageWeb services in any .NET language

C#, C++, VB.NET,C#, C++, VB.NET, JScriptJScript, etc., etc.

Automatic multiple clients supportAutomatic multiple clients support

DHTML, HTML 3.2, WML, small devicesDHTML, HTML 3.2, WML, small devices

Compilation of ASP.NET Web applicationsCompilation of ASP.NET Web applicationsinto .NET assembliesinto .NET assemblies

Cached the first time when calledCached the first time when called All subsequent calls use the cached versionAll subsequent calls use the cached version

Separation of code and contentSeparation of code and content Developers and designers can work independentlyDevelopers and designers can work independently

ASP.NETASP.NET

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 42/55

ASP.NETASP.NET

Rich page architecture – “Web Forms”Rich page architecture – “Web Forms” Rich set of ASP.NET server controlsRich set of ASP.NET server controls

Data validationData validation

Data bound gridsData bound grids

Event-driven execution modelEvent-driven execution model

Great Web-services supportGreat Web-services support

Easy to deployEasy to deploy

High reliability and availabilityHigh reliability and availability

High performance and scalabilityHigh performance and scalability

Scalable handling of state informationScalable handling of state information

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 43/55

VS.NET – Web Forms Designer VS.NET – Web Forms Designer 

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 44/55

DemoDemo

Create simple Web-basedCreate simple Web-baseddatabase application with:database application with:

ASP.NET (Web Forms)ASP.NET (Web Forms) ADO.NETADO.NET

MS SQL Server MS SQL Server 

Visual Studio .NETVisual Studio .NET

S

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 45/55

Web ServicesWeb Services

Technical definition – “A programmableTechnical definition – “A programmableapplication component accessible viaapplication component accessible viastandard Web protocols”standard Web protocols” Built on XML and SOAPBuilt on XML and SOAP

Expose functionality from Web SitesExpose functionality from Web Sites Almost like component programming over Almost like component programming over 

the Webthe Web

Functionality exposed using XML/HTMLFunctionality exposed using XML/HTML Standard Web Services includeStandard Web Services include

Calendar Calendar  MSN PassportMSN Passport

XML W b S i F d ti

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 46/55

XML Web Services FoundationXML Web Services Foundation

Ubiquitous Communications:  InternetUbiquitous Communications:  Internet

Universal Data Format:Universal Data Format: XMLXML

Service Interactions:Service Interactions: SOAPSOAP

Publish, Find, Use Services:Publish, Find, Use Services: UDDIUDDI

Simple, Open, Broad Industry SupportSimple, Open, Broad Industry Support

Open standards:Open standards:

ASP NET W b S i

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 47/55

ASP.NET Web ServicesASP.NET Web Services

Simple programming modelSimple programming model Author .ASMX files with class methodsAuthor .ASMX files with class methods

ASP.NET compiles on demand, generatesASP.NET compiles on demand, generatesWSDL contract, exposes HTML test pageWSDL contract, exposes HTML test page

Incoming HTTP/SOAP messages invokeIncoming HTTP/SOAP messages invokemethodsmethods No special HTTP, SOAP or XML knowledgeNo special HTTP, SOAP or XML knowledge

requiredrequired Supports multiple message wire formatsSupports multiple message wire formats

HTTP GET, POST, and SOAP RequestsHTTP GET, POST, and SOAP Requests

W b S i E l i C#

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 48/55

Web Service Example in C#Web Service Example in C#

ParcelTracker.asmxParcelTracker.asmxParcelTracker.asmxParcelTracker.asmx

<%@ WebService Language="C#" %> <%@ WebService Language="C#" %> using System;using System;using System.Web.Services;using System.Web.Services;

public class ParcelTrackerWebServicepublic class ParcelTrackerWebService{{  [WebMethod][WebMethod]  public string GetOrderStatus(int orderNumber)public string GetOrderStatus(int orderNumber)

  {{  ////  Implementation hereImplementation here

  }}}}

<%@ WebService Language="C#" %> <%@ WebService Language="C#" %> using System;using System;using System.Web.Services;using System.Web.Services;

public class ParcelTrackerWebServicepublic class ParcelTrackerWebService{{  [WebMethod][WebMethod]  public string GetOrderStatus(int orderNumber)public string GetOrderStatus(int orderNumber)

  {{  ////  Implementation hereImplementation here

  }}}}

NET F k Li

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 49/55

.NET Framework on Linux.NET Framework on Linux

Mono ProjectMono Project Open Source C# compiler, CLR and FrameworkOpen Source C# compiler, CLR and FrameworkClass LibraryClass Library

Runs on various platforms and hardware:Runs on various platforms and hardware:

Linux, Unix, FreeBSD, Windows – JIT-compiler Linux, Unix, FreeBSD, Windows – JIT-compiler for x86for x86

s390, SPARCs390, SPARC,, PowerPCPowerPC – interpreter for these– interpreter for thesehardware architectureshardware architectures

Supports also:Supports also:

ADO.NET and XMLADO.NET and XML

Windows Forms (not fully)Windows Forms (not fully)

ASP.NETASP.NET

Web ServicesWeb Services

NET F k Li (2)NET F k Li (2)

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 50/55

.NET Framework on Linux (2).NET Framework on Linux (2)

Mono ProjectMono Project

Runs .NET portable executables on Linux, e.g.Runs .NET portable executables on Linux, e.g.

mono myapp.exemono myapp.exe Compiles .NET applications to portable executables,Compiles .NET applications to portable executables,

e.g.e.g.mcs myapp.csmcs myapp.cs

The obtained .exe file can taken and run on WindowsThe obtained .exe file can taken and run on Windows

DotGNU Portable.NETDotGNU Portable.NET Build and execute .NET applications onBuild and execute .NET applications on GNU/LinuxGNU/Linux,,

Windows, Solaris, NetBSD, FreeBSD, and MacOS XWindows, Solaris, NetBSD, FreeBSD, and MacOS X

SS

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 51/55

SummarySummary

.NET Framework is a code execution platform.NET Framework is a code execution platform– the environment which .NET programs run– the environment which .NET programs run

.NET Framework consists of two primary.NET Framework consists of two primary

parts: Common Language Runtime and .NETparts: Common Language Runtime and .NET

Class LibrariesClass Libraries The CLS (Common Language Specification)The CLS (Common Language Specification)

allows different languages to interactallows different languages to interact

seamlessly.seamlessly. The CTS (Common Type System) allows allThe CTS (Common Type System) allows all

languages to share base data types.languages to share base data types.

S (2)S (2)

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 52/55

Summary (2)Summary (2)

.NET languages are compiled to MSIL by their .NET languages are compiled to MSIL by their respective compilersrespective compilers

MSIL code is compiled to machine code byMSIL code is compiled to machine code by

the JIT compiler the JIT compiler 

All .NET languages have equal access to theAll .NET languages have equal access to the

FCL (Framework Class Library) which is aFCL (Framework Class Library) which is a

rich set of classes for developing softwarerich set of classes for developing software

Base Class Library is set of basic classes:Base Class Library is set of basic classes:Collections, I/O, Networking, Security, etc.Collections, I/O, Networking, Security, etc.

ADO.NET provides .NET applications withADO.NET provides .NET applications with

access to relational databasesaccess to relational databases

S (3)S (3)

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 53/55

Summary (3)Summary (3)

.NET has great XML support including: DOM,.NET has great XML support including: DOM,XSLT,XSLT, XPathXPath, and, and XSchemaXSchema

Windows Forms provides GUI interface for Windows Forms provides GUI interface for the .NET applicationsthe .NET applications

ASP.NET allows creating web interface toASP.NET allows creating web interface to.NET applications.NET applications

Web Services expose functionality from webWeb Services expose functionality from websites and make it remotely accessiblesites and make it remotely accessiblethrough standard XML-based protocolsthrough standard XML-based protocols

Visual Studio .NET is powerful developmentVisual Studio .NET is powerful developmentIDE for all .NET languages and technologiesIDE for all .NET languages and technologies

NET F k RNET F k R

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 54/55

.NET Framework – Resources.NET Framework – Resources Visit following web sites:Visit following web sites:

..NET Framework Home Site –NET Framework Home Site –http://msdn.microsoft.com/netframework/http://msdn.microsoft.com/netframework/ The Microsoft .NET Framework Community –The Microsoft .NET Framework Community –

http://www.gotdotnet.com/http://www.gotdotnet.com/ ASP.NET –ASP.NET – http://www.asp.net/http://www.asp.net/

.NET Windows Forms –.NET Windows Forms –http://www.windowsforms.net/http://www.windowsforms.net/

Code Project –Code Project – http://www.codeproject.net/http://www.codeproject.net/ Mono – Open Source .NET Framework  –Mono – Open Source .NET Framework  –

http://www.go-mono.org/http://www.go-mono.org/

Rotor – Shared Source .NET CLI –Rotor – Shared Source .NET CLI –http://msdn.microsoft.com/net/sscli/http://msdn.microsoft.com/net/sscli/  

Read the news groups:Read the news groups: news://news://msnews.microsoft.commsnews.microsoft.com//

microsoft.public.dotnet.frameworkmicrosoft.public.dotnet.framework

8/7/2019 DotNET-Framework-Overview SP Beniwal

http://slidepdf.com/reader/full/dotnet-framework-overview-sp-beniwal 55/55

Questions?Questions?


Recommended