Sunteți pe pagina 1din 25

Subject name

Subject Name: Dot Net Technology Subject Code: 171604 Text Books: 1. Professional VB. NET , Wrox publication 2. ASP .NET complete reference, TMH 3. C# The Basic by Vijay Mukhi

Reference Books:
1. ASP.NET Developers Guide Greg Buczek, McGrawHill 2. Programming VB.Net 2005, Julia Case Bradley, Anita Millspaugh, McGrawHill 3. ASP.NET 2.0, Black Book, dreamtech 4. ASP.NET 4, Unleashed Stephen Walther, Kevin Hoffman, Nate Dudek, Pearson 5. Professional C# .Net, Wrox publication

Course Contents
Introduction to .NET Data Types and Base Class Libraries VB .NET Object Oriented Programming with VB.NET Introduction to Windows Forms Windows Forms and Controls in detail Introduction to ADO.NET Console Applications C# .NET ASP.Net Managing State Themes and Master Pages Using the Data Bound controls and Repeater Controls Creating and Consuming Web Services Advance .Net Concepts

Chap-1

Introduction to .NET

Visual studio.NET
Visual Studio .NET is complete package of development tools for developing web application, desktop applications, mobile applicationetc Visual studio .et supports 20 languages for developing software. Ex.. VB,VISUAL C++,Visual C#..... With help of Visual studio.NET we can create software with different programming language. We can develop following type of project. ASP.net Web application Windows Form application Console application. mobile application Web services.

Different version of Visual Studio.NET


Version 1.0 Release year 2002 Visual Studio Visual Studio 2002

1.1
2.0 3.0 3.5 4.0

2003
2005 2006 2007 2010

Visual Studio 2003


Visual Studio 2005 Visual Studio 2005 Visual Studio 2008 Visual Studio 2010

What is difference between java and .net


Differences between .Net and Java include Java is from Sun, .Net is from Microsoft Java is a language plus a runtime, .Net is a runtime framework that supports multiple languages, Visual Basic and C# (the .Net language most similar to Java) among them. Java is more platform independent, it runs on several operating systems including Windows, Mac and Linux. .Net is primarily for Windows. Although the open source project is developing a multi-platform runtime for .Net, so this is less of an issue than it used to be.

What is .NET Framework?


.NET framework is development and execution
environment that allows developers to create windows and web based application. .NET Framework consists of 2 main parts: common language runtime(CLR) class library

Features of .NET
Rich set of classes Object oriented programming system In built Memory management Multi language support Faster and easy development of application. XML support visual studio .net supports for writing, manipulating and transferring XML documents.

Advantage of .Net framework.


Common Runtime Environment: .NET support

language such as vb.net, C# and so on. It provides its own compiler to compile code to MSIL(microsoft intermediate language). When code is converted to MSIL, the common runtime engine compile the MSIL to native code with help of JIT(just-in-time) compiler and then runs the application.

Language independence:
.net Framework provides multiple language support using feature known as common type system (CTS) .

Base Class Library:


this is known as Framework Class Library(FCL) can be used to implement application quickly.

Security:
Asp.net provides security models that will allow you to authenticate your users .

.NET Framework - Architecture

CLR

Common language Runtime


Why CLR required?

to execute a program written in any language (Ex .in visual C#) the machine executing the program must have visual C# runtime installed in it. means we require different runtime for executing different programming languages. .net CLR offers the solution to this problem by providing a single runtime environment for multiple languages.

Responsibly of CLR

Garbage Collection Code Access Security Code Verification Intermediate language

Code Manager Code manager invokes class loader for execution. .NET supports two kind of coding 1) Managed Code 2) Unmanaged Code Managed Code The code, which is developed in .NET framework, is known as managed code. This code is directly executed by CLR with help of managed code execution Rather than directly by the operating system. Any language that is written in .NET Framework is managed code. Managed code uses CLR which in turns looks after your applications by managing memory management, handling security, runtime type checking and so on.

Unmanaged Code
The code, which is developed outside .NET, Framework is known as unmanaged code. Applications directly executed by os, rather than CLR are said to be unmanaged, and certain languages such as C++ can be used to write such applications. Unmanaged code is executed with help of wrapper classes. Wrapper classes are of two types: CCW (COM callable wrapper) and RCW (Runtime Callable Wrapper) EX. C,C++,COBOL etc.

Native Code
The code to be executed must be converted into a language that the target operating system understands, known as native code.

MSIL (Microsoft Intermediate Language)


It is language independent code.

JIT (Just-in-Time)
Just - in - Time (JIT) compiler, which compiles MSIL into native code that is specific to the OS and machine architecture being targeted.

Garbage Collection (GC)


One of the most important features of managed code is the concept of garbage collection. This is the .NET method of making sure that the memory used by an application is freed up completely when the application is no longer in use.

CTS (Common type specification)


CTS supports variety of types and operation found in most programming languages and therefore calling one language from another does not require type conversions.

CLS(common language specification)


It is a subset of CTS. All instruction of CTS is written in CLS.

Assemblies
When you compile an application, the MSIL code created is stored in an assembly. Assemblies include both executable application files that you can run directly from Windows without the need for any other programs (these have a .exe file extension), and libraries (which have a .dll extension) for use by other applications. In addition to containing MSIL, assemblies also include meta information (that is, information about the information contained in the assembly, also known as metadata).

Types of assemblies
Private assemblies: A private assembly is used by single application, and stored in that application s directory. Shared assemblies: A share assembly can be used by multiple applications and is stored in the Global assembly cache, a repository of assemblies maintained by the .Net Framework.

Base Class Library:


->This is known as Framework Class Library(FCL) can be used to implement application quickly. -> .NET Framework's Base Class Library provides functionality for following. Ex. User interface, connectivity(ADO.NET).,security

Major problem before .net


Regiatration of COM components (Component Object Model) COM is used by developers to create re-usable software components. COM is an interface standard for software introduced by Microsoft in 1993 and it is used to enable inter process communication and dynamic object creation in programming language COM is used in applications For example COM OLE technology allows Word documents to dynamically link to data in Excel spreadsheets . Unloading COM Components.(free up memory when it is no longer to use) Versioning problem (DLL hell)

DLL Hell problem


"DLL Hell" refers to the set of problems caused when multiple
applications attempt to share a common component like a dynamic link library (DLL) or a Component Object Model (COM) class. The reason for this issue was that the version information about the different components of an application was not recorded by the system. (Windows Registry cannot support the multiple versions of same COM component this is called the dll hell problem.)

S-ar putea să vă placă și