0% found this document useful (0 votes)
6 views2 pages

Unit 2

Uploaded by

Shubhasmita Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Unit 2

Uploaded by

Shubhasmita Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIT 2 Q2.

Explain the three layer architecture of

ASP.NET. Asp.net architecture consists of 3


layers as follows:
Presentation Layer
The presentation layer consists of the Asp.net page that manages the
appearance of application. This layer can include bound data controls and
ObjectDataSource objects that bind data controls to the data.
Middle Layer

The middle layer contains the data access classes that manage the data
access for the application. This layer can also contain business objects that
represent business entities such as customers, products or employee and
that implement business rules such as credit and discount policies.
Database Layer

This layer consists of the database that contains the data for the application. Ideally
the SQL
statement that do the database access should be saved in stored procedure
within the database, nut the SQL statement are often stored in the data
access classes.

Q.5Difference between HTML control and Web Server control.


HTML control Web Server control

HTML control runs at client side. ASP.Net controls run at server side.

We can run HTML controls at server side by Wecannot run ASP.Net Controls on client
adding attribute runat=”server”. side as these controls have this
attribute runat=”server” by default.

HTML controls are client side controls, so it ASP.Net Controls are Server side controls,
does not provide STATE management. provides STATE management.

HTML control does not require rendering. HTML control does not require rendering.
As HTML controls runs on client side, As ASP.Net controls run on server side,
execution is fast. execution is slow.
HTML controls does not support Object With ASP.Net controls, you have full
Oriented paradigm. support of Object oriented paradigm.
HTML control have limited set of ASP.Net controls have rich set of
properties and/or methods. properties and/or methods.

<input type="text" ID="txtName"> <asp:TextBoxId="txtName"runat="server


"> </asp:TextBox>

You might also like