


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
ASP Computer Applications Get up to 1000 download points for every original document you upload!
Typology: Study Guides, Projects, Research
1 / 42
This page cannot be seen from the preview
Don't miss anything!
(Batch 2016-2019)
INDEX
S.NO. NAME OF THE CHAPTER^ PAGE
NO.
REMARK
Introduction to ASP.NET
ASP.Net is a framework which is used to develop a Web-based application. The basic architecture of the ASP.Net framework is as shown below.
The Common Language Infrastructure or CLI is a platform. .Net programs are executed on this platform. The CLR is used for performing key activities. Activities include Exception handling and Garbage collection.
Common Language Infrastructure(CLI) : -
Part of Microsoft's .NET strategy, Common Language Infrastructure (CLI) enables an
application programwritten in any of several commonly-used programming languages to be run
on any operating system using a common runtime program rather than a language-specific one.
Common Language Infrastructure provides a virtual execution environment comparable to the
one provided by Sun Microsystems for Java programs.
The Commerce Server Base Class Library is a collection of classes, interfaces, and value
types that are included in the Commerce Server .NET Application Framework. This library
provides access to run-time Commerce Server functionality and is designed to be the foundation
on which .NET-based Commerce Server applications are built. The Base Class Library exposes
an API that is optimized for the .NET Frameworkwhile using the services provided by the
Common Language Runtime Interop Layer.
ASP.NET Basics
ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required to build up robust web applications for PC, as well as mobile devices.
ASP.NET works on top of the HTTP protocol, and uses the HTTP commands and policies to set a browser-to-server bilateral communication and cooperation.
ASP.NET is a part of Microsoft .Net platform. ASP.NET applications are compiled codes, written using the extensible and reusable components or objects present in .Net framework. These codes can use the entire hierarchy of classes in .Net framework.
The ASP.NET application codes can be written in any of the following languages:
ASP.NET is used to produce interactive, data-driven web applications over the internet. It consists of a large number of controls such as text boxes, buttons, and labels for assembling, configuring, and manipulating code to create HTML pages.
ASP.Net Page Life cycle
When an ASP.Net page is called, it goes through a particular lifecycle. This is done before the
response is sent to the user. There are series of steps which are followed for the processing of an ASP.Net page.
Let's look at the various stages of the lifecycle of an ASP.Net web page.
This is when the page is first requested from the server. When the page is requested, the server checks if it is requested for the first time. If so, then it needs to compile the page, parse the response and send it across to the user. If it is not the first time the page is requested, the cache is checked to see if the page output exists. If so, that response is sent to the user.
During this time, 2 objects, known as the Request and Response object are created. The Request object is used to hold all the information which was sent when the page was requested. The Response object is used to hold the information which is sent back to the user.
PreInit is the first event in page life cycle. It checks the IsPostBack property and determines whether the page is a postback. It sets the themes and master pages, creates dynamic controls, and gets and sets profile property values. This event can be handled by overloading the OnPreInit method or creating a Page_PreInit handler.
Init event initializes the control property and the control tree is built. This event can be
handled by overloading the OnInit method or creating a Page_Init handler.
InitComplete event allows tracking of view state. All the controls turn on view-state
tracking.
LoadViewState event allows loading view state information into the controls.
During this phase, the contents of all the input fields are defined with the