Unit 1
Unit 1
NET
UNIT - 1
Q1. What is ASP.NET ?
• Note :- when you are dealing with large size of DB, it is very usefull.
Parallel LINQ
• Parallel LINQ or PLINQ is a parallel implementation of LINQ to objects.
It combines the simplicity and readability of LINQ and provides the
power of parallel programming.
• It can improve and provide fast speed to execute the LINQ query by
using all available computer capabilities.
• Apart from the above features and libraries, .NET includes other APIs
and Model to improve and enhance the .NET framework.
ASP.NET provides three development styles
for creating web applications:
• Web Forms
• ASP.NET MVC
It is used to create dynamic web pages. It provides fast and lightweight way to combine
server code with HTML.
It helps to add video, link to the social sites. It also provides other features like you can
create beautiful sites that confirm to the latest web standards.
All these are stable and well equipped frameworks. We can create web applications with
any of them. These are also based on the .NET Framework and share core functionalities of
.NET and ASP.NET.
• We can use any development style to create application.
• The selection of style is depends on the skills and experience of the programmer.
• Although each framework is independent to other, we can combine and use any of that
at any level of our application.
• For example, to develop client interaction module, we can use MVC and for data control,
we can use Web Forms.
The following table illustrates each
development model.
Q3. Explain ASP.NET Page Lifecycle.
Check the IsPostBack property to determine whether the page is being processed first time.
Create or re-create dynamic controls.
3) Page_Preload():
Prior to this event, the ViewState and PostBack data are restored to the
controls.
This event is used if we want to do some task before load event is
executed.
4) Page_Load():
It calls the Load Event of the pages as well as each control on the page. This event is
used to set the properties of the controls and it can also be used to established
database connection.
5) Control_events :
They are useful to handle the events of the controls. EX:- Click event of the button.
6) Page_PreRender() :
It is executed for each control on the page. It is used to make final
changes to the page and its controls.
7) Page_Unload() :
It is executed for each control and then for the page. So we can say that
is useful for the final cleanup such as closing the connection, closing
the files, completing log etc.
Compiled Code
In order to serve the request given by the user, ASP.NET must first
compile the code. We can write the ASP.NET code in any of the
Language supported by .NET framework. When we compile the code.
• Objects :- They are the basic runtime entities. They are the variables
of the class. It is said to be the instance of the class.
OBJECT ORIENTED CONCEPTS!
• Constructor :- They are the special procedure that are invoked
automatically for object creation.