WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS.

Answer Posted / kailash paliwal

ASP.NET Server Controls
Advantages:

1. ASP .NET Server Controls can however detect the target
browser's capabilities and render themselves accordingly.
No issues for compatibility issues of Browsers i.e page
that might be used by both HTML 3.2 and HTML 4.0 browsers
code to be written by you.
2. Newer set of controls that can be used in the same
manner as any HTMl control like Calender controls. (No need
of Activex Control for doing this which would then bring up
issues of Browser compatibility).
3. Processing would be done at the server side. In built
functionality to check for few values(with Validation
controls) so no need to choose between scripting language
which would be incompatible with few browsers.
4. ASP .NET Server Controls have an object model different
from the traditional HTML and even provide a set of
properties and methods that can change the outlook and
behavior of the controls.
5. ASP .NET Server Controls have higher level of
abstraction. An output of an ASP .NET server control can be
the result of many HTML tags that combine together to
produce that control and its events.


Disadvantages:

1. The control of the code is inbuilt with the web server
controls so you have no much of direct control on these
controls
2. Migration of ASP to any ASP.NET application is
difficult. Its equivalent to rewriting your new application
HTML Server Controls
Advantages:

1. The HTML Server Controls follow the HTML-centric object
model. Model similar to HTML
2. Here the controls can be made to interact with Client
side scripting. Processing would be done at client as well
as server depending on your code.
3. Migration of the ASP project thought not very easy can
be done by giving each intrinsic HTML control a runat =
server to make it HTML Server side control.
4. The HTML Server Controls have no mechanism of
identifying the capabilities of the client browser
accessing the current page.
5. A HTML Server Control has similar abstraction with its
corresponding HTML tag and offers no abstraction.

Disadvantages:
1. You would need to code for the browser compatibility.
HTML Intrinsic Controls
Advantages:
1. Model similar to HTML
2. Here the controls can be made to interact with Client
side scripting

Disadvantages:
1. You would need to code for the browser compatibility

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If 200 is for all successful operation then why do we have 201 response codes?

528


How to use ipostback?

594


Explain the difference between dataset and datareader.

533


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

653


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

492






What is the request flow used for asp.net mvc framework? : asp.net mvc

533


Explain model, view and controller represent in an mvc application? : asp.net mvc

519


What is the viewstate in asp.net?

573


How will you load dynamic assembly?

545


What is a master page and what does it do?

537


What is autopostback in dropdownlist in asp net?

535


Which two new properties are added in asp.net 4.0 page class?

528


What are the main requirements for caching?

543


What is jade template engine?

576


In which event of the page viewstate is available?

470