1.Introduction of ASP.NET
2.Architecture Of ASP.NET Framework:
3.Page Life Cycle Of ASP.NET:
Advantage of ASP.NET
2.Architecture Of ASP.NET Framework:
3.Page Life Cycle Of ASP.NET:
ASP.NET is the next generation ASP, but it's not an upgraded
version of ASP. ASP.NET is an entirely new technology for server-side scripting.
ASP.NET is a part of the Microsoft .NET framework, and a powerful tool for
creating dynamic and interactive web pages. ASP.NET is a server side scripting technology that enables scripts (embedded
in web pages) to be executed by an Internet server
- ASP.NET is a Microsoft Technology.
- ASP stands for Active Server Pages
- 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.NET File
- An ASP.NET file is just the same as an HTML file
- An ASP.NET file can contain HTML, XML, and scripts
- Scripts in an ASP.NET file are executed on the server
- An ASP.NET file has the file extension ".aspx"
- When a browser requests an HTML file, the server returns the file.
- When a browser requests an ASP.NET file, IIS passes the request to the ASP.NET engine on the server.
- The ASP.NET engine reads the file, line by line, and executes the scripts in the file.
- Finally, the ASP.NET file is returned to the browser as plain HTML.
- Code behind in asp. net allows separation of business logic from UI which is not possible in asp.
- ASP. Net uses ADO .Net objects which are represented using XML and hence they are lightweight and can travel through firewalls. ASP uses ADO record sets which are binary COM objects heavier than ADO.Net counterparts and cannot travel through firewalls.
- ASP.Net supports object oriented programming. ASP is procedural.
- ASP.Net is compiled and hence performs better. ASP is pure scripting and hence interpreted at the time of page load.
- ASP.Net has caching and exception handling which is not available with ASP.
- ASP.NET has better language support, a large set of new controls, XML-based components, and better user authentication.
- ASP.NET provides increased performance by running compiled code.
- ASP.NET code is not fully backward compatible with ASP
Basic Features In ASP.NET:
-
Easy-to-use, graphical data mapping interface
-
Instant data transformation
-
XSLT 1.0/2.0 and XQuery code generation
-
Java, C#, and C++ code generation
-
Advanced data processing functions
-
Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
-
Integration with Altova StyleVision for report rendering
-
Visual Studio & Eclipse integration
-
Available in 32-bit and 64-bit versions
Advanced Features in ASP.NET:
Some of the new features in ASP.NET 2.0 are:
-
Master Pages, Themes, and Web Parts
-
Standard controls for navigation
-
Standard controls for security
-
Roles, personalization, and internationalization services
-
Improved and simplified data access controls
-
Full support for XML standards like, XHTML, XML, and WSDL
-
Improved compilation and deployment (installation)
-
Improved site management
-
New and improved development tools
Some of the new features in ASP.NET 3.5 are:
-
ASP.NET AJAX.
-
New ListView and DataPager Controls.
-
WCF Support for RSS, JSON, POX and Partial Trust.
-
LINQ (Language Integrated And Query).
-
New Web Design Interface.
-
Multi-targeting Support.
The new assemblies that would be of use to
ASP.NET 3.5 developers are as follows:
-
System.Core.dll - Includes the implementation for LINQ to Objects
-
System.Data.Linq.dll - Includes the implementation for LINQ to SQL
-
System.Xml.Linq.dll - Includes the implementation for LINQ to XML
-
System.Data.DataSetExtensions.dll - Includes the implementation for LINQ to DataSet
-
System.Web.Extensions.dll: Includes the implementation for ASP.NET AJAX (new enhancements added) and new web controls as explained earlier.
Advantage of ASP.NET
-
ASP.NET drastically reduces the amount of code required to build large
applications.
-
With built-in Windows
authentication and per-application configuration, your applications are safe and
secured.
-
It provides better performance by taking advantage of early binding,
just-in-time compilation, native optimization, and caching services right out of
the box.
-
The ASP.NET framework is complemented by a rich toolbox and designer in
the Visual Studio integrated development environment. WYSIWYG editing,
drag-and-drop server controls, and automatic deployment are just a few of the
features this powerful tool provides.
-
Provides simplicity as ASP.NET makes it easy to perform common tasks, from
simple form submission and client authentication to deployment and site
configuration.
-
The source code and HTML are together therefore ASP.NET pages are easy to
maintain and write. Also the source code is executed on the server. This
provides a lot of power and flexibility to the web pages.
-
All the processes are closely monitored and managed by the ASP.NET
runtime, so that if process is dead, a new process can be created in its place,
which helps keep your application constantly available to handle requests.
-
It is purely server-side technology so, ASP.NET code executes on the
server before it is sent to the browser.
-
Being language-independent, it allows you to choose the language that best
applies to your application or partition your application across many languages.
-
ASP.NET makes for easy deployment. There is no need to register
components because the configuration information is built-in.
-
The Web server continuously monitors the pages, components and
applications running on it. If it notices any memory leaks, infinite loops,
other illegal activities, it immediately destroys those activities and restarts
itself.
-
Easily works with ADO.NET using data-binding and page formatting
features. It is an application which runs faster and counters large volumes of
users without having performance problems.Page Life Cycle Of ASP.NET:PreInitUse this event for the following:
• Check the IsPostBack property to determine whether this is the first time the page is
being processed.
• Create or re-create dynamic controls.
• Set a master page dynamically.
• Set the Theme property dynamically.InitUse this event to read or initialize control propertiesInitCompleteUse this event for processing tasks that require all initialization
be complete.PreLoadUse this event if you need to perform processing on your page or control before the Load event. After the Page raises this event, it loads view state for itself and all controls, and then processes any postback data included with the Request instance.LoadThe Page calls the OnLoad event method on the Page, then recursively does the same for each child control, which does the same for each of its child controls until the page and all controls are loaded.LoadCompleteUse this event for tasks that require that all other controls on the page be loaded.Page_PreRenderThe application is about to render the page object.Page_UnloadThe page is unloaded from memory.Page_DisposedThe page object is released from memory. This is the last event in the life of a page object.Architecture Of ASP.NET Framework:In Above Figure:The configuration of ASP.NET is managed by information stored in XML-format in a configuration file (Web.Config). The cache allows for improved performance of ASP.NET, as the most commonly requested pages would be served from the ASP.NET cache.State management services for ASP.NET are provided by the ASP.NET state service. The .NET Framework provides the Common Language Runtime (CLR) , which compiles and manages the execution of ASP.NET code, and the class libraries, which offer prebuilt programmatic functionality for Web Forms, XML support, and exception handling. ADO.NET provides ASP.NET with connections to databases.
No comments :
Post a Comment