0% found this document useful (0 votes)
18 views6 pages

Lecture 1 I 4 Dot Net

.NET is a framework that includes multiple programming languages and technologies for building various applications, including desktop and web applications. The Common Language Runtime (CLR) enables platform independence and language interoperability, allowing code from different languages to work together. ASP.NET is a key component for creating dynamic web pages, and the .NET Framework Class Library provides essential classes and interfaces to optimize development.

Uploaded by

harrur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

Lecture 1 I 4 Dot Net

.NET is a framework that includes multiple programming languages and technologies for building various applications, including desktop and web applications. The Common Language Runtime (CLR) enables platform independence and language interoperability, allowing code from different languages to work together. ASP.NET is a key component for creating dynamic web pages, and the .NET Framework Class Library provides essential classes and interfaces to optimize development.

Uploaded by

harrur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

1/13/2011

Web and .Net

history
• .NET include five languages – Visual Basic .NET (VB.NET), C++.NET, Jscript .NET, J#.NET, C#.NET
• .NET Framework collects all the technologies needed for building Windows desktop applications,
web applications, web services, and so on, into a single package, and makes them available to more
than 40 programming languages.

• Visual Studio .NET 1.0


• Visual Studio .NET 2003 -- .NET 1.1
• Visual Studio .NET 2005 -- .NET2.0
• Visual Studio .NET 2008 -- .NET3.0, .NET 3.5, Professional edition, Enterprise edition.
• Visual Web Developer 2008 Express edition is free,
• SQL Server 2005 Express Edition is free

• ASP.NET
• ADO.NET – support for database access within the .NET Framework
• WPF – needs .NET3.0 or .NET3.5
• Windows Forms
• DirectX – for applications with demanding real-time graphics.
• Silverlight –take part of the WPF platform, host it in any modern browser using plug-in, in any
operating system.
• XAML –

1
1/13/2011

Common Language Runtime

• Central to the .NET framework is its runtime execution


environment, known as the Common Language Runtime (CLR) or
the .NET Runtime.
• Compilation in .NET occurs in two steps:
– Compilation of source code to IL (Intermediate language). IL is the
assembly language that all compiled code ends up in on .NET.
– Compilation of IL to platform-specific code by the CLR.
• Platform independence – the same file containing the code can be
placed on any platform, with Just in Time compilation of the IL to
achieve performance gain.
• Language Interoperability – you can compile code to IL from one
language, and that code can be used by IL compiled from another
language

IL (Intermediate Language)
• Important features of IL
– Object oriented and use of interfaces
– Strong distinction between value and reference types
– Strong data typing
– Error handling using exceptions
– Use of attributes
• Strong data typing
– Common type system – Common Type System (CTS) defines the predefined data types that
are available in IL, so that all languages that target the .NET framework will produce compiled
code that is ultimately based on these types.
– Common Language Specification (CLS) works with the CTS to ensure language
interoperability. The CSL is a set of minimum standards that all compliers targeting .NET must
support.
• Language interoperability
– A class written in one language can inherit from a class written in another language.
– The class can contain instances of another class, no matter what the languages of the two
classes are.
– An object can directly call methods against another object written in another language.

2
1/13/2011

Assemblies, class library, Namespaces

• An assembly is the logical unit that contains compiled code targeted


at the .NET Framework.
• Private assembly – shipped with software and intended to be used
only with that software.
• Shared assembly – common libraries that any other application can
use.
• .NET base classes.
• Namespaces are the way that .NET avoids name clashes between
classes. .NET requires all types to be defined in a namespace.
• Supply at least two nested namespace names: the first one
represents the name of your company, and the second one
represents the name of the technology or software package.

.NET applications
• Console applications: text-only applications that run in a DOS
window, which can be useful for UNIX or Linux.
• ASP.NET applications – creating web pages with dynamic
content. An ASP page is an HTML file with embedded chunks
of server-side VBScript, JavaScript, or C#.
• Web forms – Visual Studio 2008 supplies Web Forms to build
ASP.NET pages graphically.
• Windows Forms – applications that must be installed on the
end user’s machine where most of the processing takes place.
• Web forms use web server controls, and windows forms use
windows Controls.

3
1/13/2011

ASP.NET

• ASP.NET page are structured. Each page is a class that inherits


from the .NET System.Web.UI.Page class.
• Can be created in Visual Studio 2008
• ASP.NET allows you to isolate the server-side functionality of a
page to a class, compile that class into a DLL, and place that
DLL into a directory below the HTML portion. A code-behind
directive at the top of the page associates the file with its DLL.
When a browser requests the page, the Web server fires the
events in the class in the page’s code-behind DLL.
• Window’s Presentation Foundation
• Window’s Communication Foundation
• Window’s Workflow Foundation

.net information

• http://msdn.microsoft.com/en-us/vstudio/default.aspx

• http://ww.asp.net/

• http://msdn.microsoft.com/en-us/library/ms229335.aspx

• WinCV in Visual Studio 2008

4
1/13/2011

Build Applications with Visual Studio


• Windows Applications
Windows Forms and Windows Presentation Foundation (WPF) are key
technologies for Windows development.
• Office Applications
Build Office Applications using the integrated programs, servers, services, tools,
and technologies included in the Microsoft Office System.
• Browser Applications
Create powerful Web applications with ASP.NET, ASP.NET MVC, ASP.NET AJAX, and
Silverlight, which are all available in Visual Studio.
• Mobile Device Applications
Use integrated Visual Studio support to develop Windows CE and Windows
Mobile-based rich-client applications for smart devices.
• SharePoint Applications
Create powerful SharePoint applications with Visual Studio 2008.
• Visual Studio 2005 and Previous Versions
MSDN Library, Downloads and Support resources targeted at helping you build
applications with older versions of Visual Studio.

ASP.NET

• ASP.NET lets you write the server-side code using your favoriate
programming language. The .NET Framework currently supports
over 40 languages, and many of these may be used to build ASP.NET
web sites.
• ASP.NET pages are compiled
• ASP.NET has full access to the functionality of the .NET Framework.
Support for XML, web services, database interaction, email, regular
expressions, and many other technologies are built right into .NET.
• ASP.NET let you separate the server-side code in your pages from
HTML layout.
• ASP.NET makes it easy to reuse common UI elements in many web
forms.
• .NET framework is ported to other OS. www.mono-project.com

5
1/13/2011

.NET Framework Class Library Overview


• The .NET Framework includes classes, interfaces, and value types that expedite and optimize the
development process and provide access to system functionality.

• To facilitate interoperability between languages, most .NET Framework types are CLS-compliant and can
therefore be used from any programming language whose compiler conforms to the common language
specification (CLS).

• The .NET Framework types are the foundation on which .NET applications, components, and controls are
built. The .NET Framework includes types that perform the following functions:

• Represent base data types and exceptions.

• Encapsulate data structures.


• Perform I/O.
• Access information about loaded types.
• Invoke .NET Framework security checks.
• Provide data access, rich client-side GUI, and server-controlled, client-side GUI.
• The .NET Framework provides a rich set of interfaces, as well as abstract and concrete (non-abstract) classes.
You can use the concrete classes as is or, in many cases, derive your own classes from them. To use the
functionality of an interface, you can either create a class that implements the interface or derive a class
from one of the .NET Framework classes that implements the interface.

You might also like