Difference between HTML control and Web Server Control?

Answers were Sorted based on User's Feedback



Difference between HTML control and Web Server Control?..

Answer / blue iguana

HTML controls may not be browser independent but web
controls are always browser independent.

Is This Answer Correct ?    49 Yes 5 No

Difference between HTML control and Web Server Control?..

Answer / chandresh

HTML controls have not need to write runat="server" means
it not send request to server for any evant when in web
server control every time send request to server.

Is This Answer Correct ?    23 Yes 4 No

Difference between HTML control and Web Server Control?..

Answer / harshad lakkad (bapunagar part

--Web server Control
Web server controls are just like HTML controls...
only different. Let me clarify that.
Web controls are easily identified by the fact that they
have a
runat="server" attribute. They are also handled at the
server by
the ASP.NET runtime when a page containing them is
requested.
They can expose and raise server events which you can use
to
interact with them. They are identified by giving them an
id
attribute which you can then use to reference the control
in
your code. In all these ways, web controls are just like
HTML
controls.

--HTML Controls

The HTML controls might feel slightly quirky if you are
used to forms based development with Microsoft tools. For
instance, HTML controls have no direct properties
available
to set the colors or font used by the control when it
renders.
Another example is the Value property exposed by the
HtmlInputText
field. We generally expect a text box control to have a
Text property
for us to get or set the string to display.

In this sense, HTML controls remain true to their roots and
are
not far removed from writing just HTML. If we want to set
colors
or font information – we can use the Attributes property.
The Attributes property represents all the name / value
pairs in
the HTML element for the control. For example, a control
might have
an attribute “class” which will assign the cascading style
sheet
class. In the example above, we are assigning some inline
style
information to the style attribute of the control. On the
client
this attribute will render inline with the element.

Is This Answer Correct ?    15 Yes 7 No

Difference between HTML control and Web Server Control?..

Answer / preeti

HTML is not a programming language but it is a markup
language. A markup language is a set of markup tags. In Web
controls are also same as HTML controls but in which used as
runat="server".

Is This Answer Correct ?    9 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

what are the server controls used in sitepath navigation?

1 Answers  


In a page u have Web user controls . So what is the order in which the Page life Cycles takes place?

1 Answers  


Why web api is better than wcf?

0 Answers  


What are session state modes? List some of the important session state modes of asp.net.

0 Answers  


What threading model used in asp and asp.net?

0 Answers  






Which is the parent class of the ASP.NET server control?

0 Answers   Sans Pareil IT Services,


Explain Optimization technique description?

0 Answers   Digital GlobalSoft,


Why is it preferred to not use finalize for clean up?

0 Answers  


Difference between ASP & ASP.NET Session State

1 Answers   Cognizant, Wipro,


Is asp.net and .net are same or different?

0 Answers  


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

0 Answers   Siebel,


If i have a web page, and one web user control, where in web page contains a text box, and web user control have check box, if i place a web user control in the webpage, when i check the check box, the out put should show it is checked or not. How we can do this?

1 Answers   CGI,


Categories