1. ASP. NET
Presented By:-
Gajanand Bohra
SEO,Fan Page Expert
& Guinness World Records Holder
2. What is ASP . NET
ASP.NET is a web application framework developed and
marketed by Microsoft to allow programmers to build dynamic
web sites, web applications and web services.
ASP.NET is a Microsoft Technology
ASP.NET is a program that runs inside IIS
IIS (Internet Information Services) is Microsoft's Internet
server
IIS comes as a free component with Windows servers
IIS is also a part of Windows 2000 and XP Professional
ASP stands for:- Active Server Pages
3. What is ASP +?
ASP+ is the same as ASP.NET.
ASP+ is just an early name used by Microsoft when they
developed ASP.NET.
4. Characteristics of ASP . NET
1 Pages
2 Code-behind model
3 Directives
4 User controls
5 Custom controls
6 Rendering technique
7 State management
8 Template engine
5. Characteristics of ASP . NET
1 Pages
ASP.NET web pages known officially as Web Forms are the main
building block for application development.
Web forms are contained in files with an ".aspx" extension; these files
typically contain static (X)HTML markup, as well as markup defining
server-side Web Controls and User Controls where the developers
place all the required static and dynamic content for the web page.
Additionally, dynamic code which runs on the server can be placed in
a page within a block <% -- dynamic code -- %>, which is similar to
other web development technologies such as PHP, JSP, and ASP.
6. Characteristics of ASP . NET
2 Code-behind model
ASP.NET's code-behind model marks a departure from Classic ASP in that
it encourages developers to build applications with separation of
presentation and content in mind. In theory, this would allow a web
designer, for example, to focus on the design markup with less potential for
disturbing the programming code that drives it. This is similar to the
separation of the controller from the view in Model–View–Controller
(MVC) frameworks.
7. Characteristics of ASP . NET
3 Directives
A directive is special instructions on how ASP.NET should process the
page.[11] The most common directive is <%@ Page %> which can specify
many things, such as which programming language is used for the server-
side code.
Examples:
8. Characteristics of ASP . NET
4 User Controls
User controls are encapsulations of sections of pages which are
registered and used as controls in ASP.NET. . These files usually
contain static (X)HTML markup, as well as markup defining server-
side web controls. These are the locations where the developer can
place the required static and dynamic content.
A user control is compiled when its containing page is requested and
is stored in memory for subsequent requests. User controls have
their own events which are handled during the life of ASP.NET
requests.
A user control is primarily a form made of any combination of server and
client controls sewn together with server and client script code.
9. Characteristics of ASP . NET
5 Custom Controls
Programmers can also build custom controls for ASP.NET applications.
Such custom controls can be used across multiple web applications and
Visual Studio projects.
10. Characteristics of ASP . NET
6 Rendering technique
ASP.NET uses a visited composites rendering technique. During
compilation, the template (.aspx) file is compiled into initialization code
which builds a control tree (the composite) representing the original
template. Literal text goes into instances of the Literal control class, and
server controls are represented by instances of a specific control class. The
initialization code is combined with user-written code (usually by the
assembly of multiple partial classes) and results in a class specific for the
page. The page doubles as the root of the control tree.
11. Characteristics of ASP . NET
7 State management
ASP.NET applications are hosted by a web server and are accessed using
the stateless HTTP protocol. As such, if an application uses stateful
interaction, it has to implement state management on its own. ASP.NET
provides various functions for state management. Conceptually, Microsoft
treats "state" as GUI state. Problems may arise if an application needs to
keep track of "data state"; for example, a finite state machine which may be
in a transient state between requests (lazy evaluation) or which takes a long
time to initialize. State management in ASP.NET pages with authentication
can make Web scraping difficult or impossible.
12. Characteristics of ASP . NET
8 Template Engine
ASP.NET 2.0 introduced the concept of "master pages", which allow for template-
based page development. A web application can have one or more master pages,
which, beginning with ASP.NET 2.0, can be nested.
Master templates have place-holder controls, called Content Place Holders to
denote where the dynamic content goes, as well as HTML and JavaScript shared
across child pages.
A template engine is software that is designed to process web templates and
content information to produce output web documents. It runs in the context of a
template system
13. Benefits of Using ASP . NET
ASP.NET makes development easier to maintain with an event-driven
ASP.NET pages are easy to write and maintain because the source code and HTML
are together .
The source code is executed on the server. The pages have lots of power and flexibility
The server saves the compiled version of the page for use next time the page is
requested
The HTML produced by the ASP.NET page is sent back to the browser.
ASP.NET makes for easy deployment.
ASP.NET validates information (validation controls) entered by the user without
writing a single line of code
ASP.NET applications run faster and counters large volumes of users .
14. When it was in front of W rld
It was first released in January 2002 with version 1.0
of the .NET Framework, and is the successor to
Microsoft's Active Server Pages (ASP) technology.
15. Versions of
Date Version
ASP. NET
Remarks ASP.NET related features
January 1.O First version Developers are no longer forced to use
16, 2002 released together Server.CreateObject(...), so early-
with Visual Studio binding and type safety are possible.
.NET Based on Windows programming;
the developer can make use of DLL
class libraries and other features of the
web server to build more robust
applications that do more than simply
rendering HTML (e.g. exception
handling)
April 24, 1.1 released together Mobile controls
2003 with Windows Automatic input validation
Server 2003
released together
with Visual Studio
.NET 2003
16. Continued…..
Versions of
Date Version
ASP. NET
Remarks ASP.NET related features
November 2.0 Codename New data controls (GridView, FormView, )
7, 2005 Whidbey New technique for declarative data access
released together Navigation controls
Masterpage,,Login controls
with Visual Studio
Themes,Skins,Web parts
2005 and Visual Personalization services
Web Developer Support for 64-bit processors
Express and SQL
Server 2005
November 3.0 Windows Presentation Foundation (WPF)
21, 2006 Windows Workflow Foundation (WF)
Windows Communication Foundation
which can use ASP.NET to host services.
Windows CardSpace which uses ASP.NET
for login roles.
17. Continued…..
Versions of
Date Version
ASP. NET
Remarks ASP.NET related features
November 3.5 Released with Visual New data controls (List view, DataPager
19, 2007 Studio 2008 and ASP.NET AJAX included as part of the
Windows Server 2008 framework
Support for HTTP pipelining and
syndication feeds
April 12, 4.0 Parallel extensions Incorporation of ASP.NET Dynamic Data
2010 and other .NET support for controlling browser history in
Framework 4 an ASP.NET AJAX application
Ability to combine multiple JavaScript files
features
into one file for more efficient
downloading
New namespaces
System Web Abstractions and
System Web Routing
18. Platform for ASP. NET
ASP.NET is built on the Common Language
Runtime (CLR), allowing programmers to write
ASP.NET code using any supported .NET language
like : C++,C#,Java,V.B.
Visual studio is being used as a platform for
ASP.NET
19. Comparison of ASP PHP
&
The chart is
taken from
wrensoft.com
and quite
simply show
the difference..
This graph
shows the time
taken to
generate and
display results
for a search a
small website.
20. Continued…..
Comparison of ASP PHP &
Lots of people compare ASP & PHP and determine that PHP is better.
The unfortunate thing, is that there are a lot of people that don't
understand what is ASP.
Usually, people who say that PHP is better than asp actually mean that
PHP is better than VBScript.
I agree with that, but ASP.NET is not VBScript.
21. Comparison of ASP ASP.NET &
ASP ASP.NET
ASP is Interpreted language based on ASP.Net is supported by compiler and
scripting languages like Jscript or has compiled language support.
VBScript. Separate code and design logic possible.
ASP has Mixed HTML and coding Variety of compilers and tools available
logic. including the Visual studio.Net.
Limited development and debugging Completely Object Oriented.
tools available. Complete session and application state
Limited OOPS support. management.
Limited session and application state Full proof error handling possible.
management. Full XML Support for easy data
Poor Error handling system. exchange.
No in-built support for XML. Fully distributed data source support
No fully distributed data source ASP.NET is compiled common language
support. runtime code running on the server
ASP its interpreted by script engine. ASP.NET has its own validation controls
ASP has no inbuilt Validation controls