0% found this document useful (0 votes)
4 views1 page

HTML vs ASP.Net Controls Explained

HTML controls operate on the client side and lack state management, while ASP.Net controls run on the server side and provide state management. ASP.Net controls support object-oriented programming and can be accessed from code-behind files, unlike HTML controls. Additionally, ASP.Net controls have a richer set of properties and methods compared to HTML controls.

Uploaded by

Meet Vaghasiya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

HTML vs ASP.Net Controls Explained

HTML controls operate on the client side and lack state management, while ASP.Net controls run on the server side and provide state management. ASP.Net controls support object-oriented programming and can be accessed from code-behind files, unlike HTML controls. Additionally, ASP.Net controls have a richer set of properties and methods compared to HTML controls.

Uploaded by

Meet Vaghasiya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML Controls ASP.

Net Controls(web controls)


HTML control runs at client side. [Link] controls run at server side.
You can run HTML controls at server You can not run [Link] Controls on client
side by adding side as these controls have this
attribute runat=”server”. attribute runat=”server” by default.
HTML controls are client side controls, [Link] Controls are Server side controls,
so it does not provide STATE provides STATE management.
management.
HTML control does not require [Link] controls require rendering().
rendering.
As HTML controls runs on client side, As [Link] controls run on server side,
execution is fast. execution is slow.
HTML controls does not With [Link] controls, you have full support of
support Object Oriented paradigm. Object oriented paradigm.
HTML controls cannot be accessed [Link] controls can be directly worked and
form code behind files. accessed from code behind files.
HTML control has limited set of [Link] controls have rich set of properties
properties and/or methods. and/or methods.

Enter Name : Enter Name :

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

</asp:TextBox>

You might also like