You are on page 1of 23

ASP & ASP.

NET
By Kajal Gada
What is ASP?
• ASP stands for Active Server Pages
• ASP is a Microsoft Technology
• ASP is a program that runs inside IIS
• IIS stands for Internet Information Services
• Active Server Pages or ASP, as it is more commonly known, is a
technology that enables you to make dynamic and
interactive web pages.
• Any web pages containing ASP cannot be run by just simply
opening the page in a web browser. The page must be
requested through a web server that supports ASP, this
is why ASP stands for Active Server Pages, no server, no
active pages.


What is an ASP File?
An ASP file is just the same as an HTML file
An ASP file can contain text, HTML, XML, and scripts
Scripts in an ASP file are executed on the server
An ASP file has the file extension ".asp“.

 How Does ASP Differ from HTML?
 When a browser requests an HTML file, the server returns the file.
 When a browser requests an ASP file, IIS passes the request to the ASP
engine. The ASP engine reads the ASP file, line by line, and
executes the scripts in the file. Finally, the ASP file is returned to
the browser as plain HTML

What can ASP do for you?
• Dynamically edit, change, or add any content of a Web
page.
• Respond to user queries or data submitted from HTML
forms.
• Access any data or databases and return the results to a
browser.
• Customize a Web page to make it more useful for individual users.
• The advantages of using ASP instead of CGI and Perl, are those of
simplicity and speed.
• Provide security - since ASP code cannot be viewed from the
browser.
• Clever ASP programming can minimize the network traffic.

Difference between ASP & ASP.NET

ASP ASP.NET

• *ASP (Classic ASP as it is • ASP.NET is a the web


formulation of a Compiled
known) is a Script Language Language (i.e. Visual Basic,
(i.e. VBScript C#, J#, C++.NET)
 • More complicated ones .NET
• Asp was easier to get simple does in a flash.
tasks done. •
• • . In .NET, you can do this in 20,
• In ASP Classic, it would take if that. Just grab the info and
about 60 lines of code to throw it into a control, like
retrieve information, setup gridview, datalist, etc. It
the loops and display the automatically puts it out for
information you, then you can design it
• yourself.
ASP ASP.NET

• The original ASP platform • That’s where ASP.NET comes


garnered a huge audience of into the picture.
nearly one million developers, ▫
becoming far more popular • ASP.NET was developed as an
than even Microsoft industrial strength web
anticipated. application framework that
• could address the limitations
• It wasn’t long before it was being of ASP.
wedged into all sorts of 
unusual places, including • Compared to classic ASP,
mission-critical business ASP.NET offers better
applications and highly performance, better design
trafficked e-commerce sites. tools, and a rich set of
• readymade features.
• Because ASP wasn’t designed 
with these uses in mind, • ASP.NET was wildly popular
performance, security, and from the moment it was
configuration problems soon released—in fact, it was put to
appeared. work in dozens of large-scale
• commercial websites while
Advantages of ASP.NET over ASP
▫ Improved Performance using
▫ (a) caching of pages and application data, and
▫ (b) JIT: Just-in-time compilation. Also called dynamic
translation. A technique to improve the performance of
bytecode execution by translating bytecode into machine
code at run time.
▫ Event-Driven GUI development fashion. Developers are
familiar with this fashion, where they design some forms
and then associate each control (e.g. button) with a callback
function. To develop earlier web applications (e.g. using
CGI and ASP), they need to worry about generating the
HTML file and maintaining application data. With
ASP.NET, they nicely move back to the GUI fashion.
▫ Faster Development supported by a rich set of controls and
class library -- most of which are in the .NET class library,
to be share with other .NET technologies. The .NET class
library contains about 9000 classes.
What is Microsoft .NET?
that new language C#
Microsoft putting XML into everything

the next version of Visual Basic


the next version of ASP

the next version of Visual Studio


Microsoft trying to kill Java

being able to run everything across the Net

it’s a good thing

it’s rubbish!!!
What is a .NET Technology ?
• Microsoft's .NET technology is a technology intended to
connect. What to connect? Well the whole thing that can be
linked through software - people, structures, computers, and
extra things as well as devices.
• It is a top rank domain, at the start designed to be used by
Internet Service Providers (ISP), but now it has extended and
everybody can create use of a .NET domain. It uses the Internet
domain Naming System (DNS) and it is a contraction of the word
'Network'.
• A main part of the .NET technology and structure is the ASP.net
set of technologies. These web development technologies are
used in the making of Websites and net services working on
the .NET infrastructure.
Microsoft .NET Framework

XML Web Web Windows


Services Forms Forms
ASP.NET

C# VB.NET J# C++ …
Data and XML Classes
Base Framework Classes
Common Language Runtime
What is .NET framework ?
• The .NET Framework is the infrastructure for the Microsoft
.NET platform.
• A part of Microsoft.NET is the .NET Frameworks.
• .NET framework is a cluster of different technologies:
§ .NET Languages – VB.Net, C #, J# etc .
§ CLR – runtime engine that executes all programs & provides services
like automatic memory management, security, optimization & garbage
collection.
§ Class Library – ADO.Net, Windows Forms etc. prebuilt set of
functions.
§ ASP. Net – platform services that allow you to program web
applications & web Services.
§ Visual Studio.Net – optimal development tool-contains rich set of
productivity and debugging features.
3 main parts:
• Programming languages:
▫ C# (Pronounced C sharp)
▫ Visual Basic (VB .NET)
▫ J# (Pronounced J sharp)
▫ And many more…
• Server technologies and client technologies:
▫ ASP .NET (Active Server Pages)
▫ Windows Forms (Windows desktop solutions)
▫ Compact Framework (PDA / Mobile solutions)
• Development environments:
▫ Visual Studio .NET (VS .NET)
▫ Visual Web Developer.
Introduction to ASP.NET
• ASP.NET is Microsoft’s platform for developing web
applications.
• ASP.NET is a unified Web platform that provides all the services
necessary for you to build enterprise-class applications.
• ASP.NET is built on the .NET Framework, so all .NET Framework
features are available to ASP.NET applications.
• Your applications can be written in any language that is
compatible with the common language runtime (CLR),
including Visual Basic and C#.
• Using ASP.NET, you can create e-commerce shops, data-driven
portal sites, and just about anything else you can find on the
Internet.


Contnd…

• Best of all, you don’t need to paste together a jumble of HTML


and script code in order to program the Web.
• Instead, you can create full-scale web applications using nothing
but code and a design tool such as Visual Studio 2005.

• While VB.NET is directly based VB (Visual Basic), C# was
introduced together with the .NET framework, and is therefore a
some what new language.
• No knowledge of any kind of server-side scripting is required.
• Basic HTML and CSS knowledge is preferable.

ASP.NET includes:
• A page and controls framework
• The ASP.NET compiler
• Security infrastructure
• State-management facilities
• Application configuration
• Health monitoring and performance features
• Debugging support
• An XML Web services framework
• Extensible hosting environment and application life cycle
management
• An extensible designer environment

Aim
• at integrating various languages and services
• Designed to make significant improvements in
▫ Code Reuse
▫ Code Specialization
▫ Resource Management
▫ Multilanguage Development
▫ Security Deployment
▫ Administration
• Helps creating
▫ Robust
▫ Scalable
▫ Distributed Applications
Contd…

• .NET Suite
▫ .NET products – XML
▫ .NET Services – Web Service(MyService) – based on Microsoft’s
Passport Authentication.
▫ .NET Framework – foundation 4 Designing, Developing & Deploying
applications.

Versions till now
 All in all, there have been four major releases of ASP.NET:

• ASP.NET 1.0: This first release created the core ASP.NET platform
and introduced a wide range of essential features.

• ASP.NET 1.1: This second release added performance tune-ups
and bug fixes, but no new features.

• ASP.NET 2.0: This third release piled on a huge set of new features,
all of which were built on top of the existing ASP.NET plumbing. The
overall emphasis was to supply developers with prebuilt goodies that
they could use without writing much (if any) code. Some of the new
features included built-in support for website navigation, a theming
feature for standardizing web page design, and an easier way to pull
information out of a database.
Contnd…

• ASP.NET 3.5: This fourth release keeps the same basic engine as
ASP.NET 2.0, but adds a few frills and two more dramatic changes.
The most significant enhancement is the ASP.NET AJAX toolkit, which
gives web developers better tools for creating highly responsive web
pages that incorporate rich effects usually seen in desktop applications
(such as drag-and-drop and auto complete). The other innovation is
support for LINQ, a set of language enhancements included with
.NET 3.5 that allows you to search in-memory data in the same way
that you query a database.

Page and Controls Framework
• The ASP.NET page and controls framework is a programming
framework that runs on a Web server to dynamically produce
and render ASP.NET Web pages.
• ASP.NET Web pages can be requested from any browser or client
device, and ASP.NET renders markup (such as HTML) to the
requesting browser. (In short it is not browser specific)
• As a rule, you can use the same page for multiple browsers, because
ASP.NET renders the appropriate markup for the browser
making the request.
• However, you can design your ASP.NET Web page to target a
specific browser, such as Microsoft Internet Explorer 6, and
take advantage of the features of that browser.
Contnd…

• ASP.NET supports mobile controls for Web-enabled devices such


as cellular phones, handheld computers, and personal digital
assistants (PDAs).
• ASP.NET Web pages are completely object-oriented.
• Within ASP.NET Web pages you can work with HTML elements
using properties, methods, and events.
• *The ASP.NET page framework removes the implementation
details of the separation of client and server inherent in Web-
based applications by presenting a unified model for responding
to client events in code that runs at the server.
• The framework also automatically maintains the state of a page and
the controls on that page during the page processing life cycle.
Contnd…

• The ASP.NET page and controls framework also provides features


to control the overall look and feel of your Web site via themes
and skins.
• In addition to themes, you can define master pages that you use to
create a consistent layout for the pages in your application.
• A single master page defines the layout and standard behavior that
you want for all the pages (or a group of pages) in your
application.
• You can then create individual content pages that contain the page-
specific content you want to display.
• When users request the content pages, they merge with the master
page to produce output that combines the layout of the master
page with the content from the content page

You might also like