Unit 1 - Introduction To
Unit 1 - Introduction To
NET
1.0 Objectives
1.1 Introduction
1.2 .NET Framework
1.2.1 Net Framework and .Net Languages
1.2.2 Languages supported by .Net
Framework
1.3 .NET Class Library
1.4 ASP vs. ASP.NET
1.5 Summary
1.6 Check your Progress - Answers
1.7 Questions for Self – Study
1.8 Suggested Readings
1.0 OBJECTIVES
After studying this chapter you will be able to –
explain .NET Framework.
describe the .Net languages.
explain the .Net class library.
explain difference between ASP and ASP.NET.
1.1 INTRODUCTION
Microsoft .NET technology you will have access to a new generation of
advanced software joining the best of computing and communications in a
revolutionary new way. The effect will be to totally transform the Web and every other
aspect of the computing experience. .NET enables developers, businesses, and
consumers to harness technology on their terms. .NET will allow the creation of truly
distributed Web services that will integrate and collaborate with a range of
complementary services to help customers in ways that today’s dotcoms can only
dream of.
The fundamental idea behind .NET is that the focus is shifting from individual
Web sites or devices connected to the Internet to constellations of computers, devices,
and services that work together to deliver broader, richer solutions. People will have
control over how, when, and what information is delivered to them. Computers,
devices and services will be able to collaborate with each other to provide rich
services, instead of being isolated islands where the user provides the only integration.
Businesses will be able to offer their products and services in a way that lets
customers seamlessly embed them in their own electronic fabric.
Microsoft .NET will make computing and communicating simpler and easier
than ever. It will spawn a new generation of Internet services, and enable tens of
thousands of software developers to create revolutionary online services and
businesses. It will put you back in control, and enable greater control of your privacy,
digital identity, and data. And software is what makes it all possible. However,
Microsoft’s .NET technology will only succeed if others adopt this new standard.
Source: http://vig.prenhall.com/samplechapter/013093285X.pdf
NET Framework
Advantages of .NET
The .NET Framework provides the following advantages:
The table below lists all the languages supported by the .NET Framework and
describes those languages.
Introduction to .NET / 3
programming language to have more lines of code than
any other language.
Eiffel is an Object-Oriented (OO) programming
Eiffel language which emphasizes the production of robust
software. Eiffel is strongly statically typed mature
Object-Oriented language with automatic memory
management.
ASP .NET / 4
Practical Extraction and Report Language, Perl, is a
Perl language optimized for scanning arbitrary text files,
extracting information from those text files, and printing
reports based on that information. It's also a good
language for many system management tasks.
Python is an interpreter, interactive, Object-Oriented
Python programming language. Python combines remarkable
power with very clear syntax. It has modules, classes,
exceptions, very high level dynamic data types, and
dynamic typing.
Report Program Generator, RPG, is used for generation
RPG of reports from data files, including matching record and
sub-total reports. RPG is one of the few languages
created for punch card machines that are still in
common use today. RPG or RPG IV is a native
programming language for IBM's iSeries minicomputer
system.
Scheme is a statically scoped programming language. It
Scheme was designed to have an exceptionally clear and simple
semantics and few different ways to form expressions.
A wide variety of programming paradigms, including
imperative, functional, and message passing styles, find
convenient expression in Scheme.
Small Talk is an expressive language that uses a simple
Small Talk sub set of human languages, nouns and verbs.
Smalltalk was the first, and remains one of the few; pure
object a system, which simply means that everything in
a Smalltalk program is an object. Smalltalk is generally
recognized as the second Object Programming
Language (OPL).
Standard ML is a safe, modular, strict, functional,
Standard ML polymorphic programming language with compile-time
type checking and type inference, garbage collection,
exception handling, immutable data types and
updatable references, abstract data types, and
parametric modules. It has efficient implementations
and a formal definition with a proof of soundness.
Visual Basic is a "visual programming" environment for
Microsoft developing Windows applications. Visual Basic makes it
Visual Basic possible to develop complicated applications very
quickly. This site is all about Visual Basic.
Namespace Description
Introduction to .NET / 5
Other child namespaces contain classes used by the
ADO.NET Entity Data Model (EDM) and by WCF Data
Services.
ASP .NET / 6
then rendered back to the response. This architecture affects the efficiency of
page rendering in several ways. Thus, to improve efficiency of rendering, many
ASP developers resort to large blocks of server-side script, replacing static
HTML elements with Response.Write() invocations instead. Finally, this ASP
model actually allows different blocks of script within a page to be written in
different script languages.
5) In classic ASP it was very difficult for us to debug the application. ASP
developers had time to debug application due to limited support due to the
interpreted model.
6) Class=docText>especially if you are using ASP pages it is possible to include
executable code outside the scope of a function within a script block marked as
runat=server, and, it is possible to define a function within a pair of server-side
script tags.
7) New Page Directives: In ASP you must place all directives on the first line of a
page within the same delimiting block. For example:
<%LANGUAGE="VBSCRIPT" CODEPAGE="932"%>
ASP.NET
1) The ASP.NET worker process is a distinct worker process, aspnet_wp.exe,
separate from inetinfo.exe (IIS process), and the process model in ASP.NET is
unrelated to process isolation settings in IIS.
2) ASP.NET could be run on non-Microsoft Platforms also.
3) We are no longer constrained to the two scripting languages available in
traditional ASP: Any fully compliant .NET language can now be used with
ASP.NET, including C# and VB.NET.
4) In contrast, ASP.NET pages are always compiled into .NET classes housed
within assemblies. This class includes all of the server-side code and the static
HTML, so once a page is accessed for the first time (or any page within a
particular directory is accessed), subsequent rendering of that page is serviced
by executing compiled code. This eliminates all the inefficiencies of the scripting
model of traditional ASP. There is no longer any performance difference
between compiled components and server-side code embedded within a page
they are now both compiled components. There is also no performance
difference between interspersing server-side code blocks among static HTML
elements, and writing large blocks of server-side code and using Response
.Write() for static HTML content. Also, because the .aspx file is parsed into a
single code file and compiled, it is not possible to use multiple server-side
languages within a single .aspx file.
5) But in ASP.NET In addition to improved performance over the interpreted model,
pages that are compiled into classes can be debugged using the same
debugging tools available to desktop applications or component developers.
Errors with pages are generated as compiler errors, and there is a good chance
that most errors will be found at compilation time instead of runtime, because
VB.NET and C# are both strongly typed languages. Plus, all the tools available
to the .NET developer are applicable to the .aspx developer.
6) In ASP.NET it is no longer possible to include executable code outside the
scope of a function within a script block marked as runat=server, and conversely,
it is no longer possible to define a function within a pair of server-side script tags.
7) But in ASP.NET, you are now required to place the Language directive with a
Page directive, as follows:
<%@Page Language="VB" Code Page="932"%> <%@Output Cache
Duration="60" Vary By Param="none" %>
You can have as many lines of directives as you need. Directives may be
located anywhere in your .apsx file but standard practice is to place them at the
beginning of the file. Several new directives have been added in ASP.NET.
Introduction to .NET / 7
1.5 SUMMARY
The fundamental idea behind .NET is that the focus is shifting from individual
Web sites or devices connected to the Internet to constellations of computers,
devices, and services that work together to deliver broader, richer solutions.
The .NET Framework is a key Microsoft offering and is intended to be used by
most new applications created for the Windows platform.
.NET Framework is designed for cross-language compatibility. Cross-language
compatibility means .NET components can interact with each other irrespective
of the languages they are written in.
All the languages supported by the .NET Framework is C++, C#, COBOL, Eiffel,
Java, Perl etc.
1. Microsoft MSDN
2. http://vig.prenhall.com/samplechapter/013093285X.pdf
3. Source: http://devreminder.wordpress.com/net/net-framework-fundamentals/
4. https://sites.google.com/site/entirefacts/dotnet
5. http://en.wikipedia.org/wiki/.NET_Framework_version_history
ASP .NET / 8