Difference between HTML control and Web Server Control?
Answers were Sorted based on User's Feedback
HTML controls may not be browser independent but web
controls are always browser independent.
| Is This Answer Correct ? | 49 Yes | 5 No |
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 |
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 |
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 |
Is post back property in asp net?
In Code-Behind class which kind of code (server or client) is found ?
Define page output caching?
What are the steps involved to fill a dataset?
Is asp.net a programming language?
What is query string in asp.net?
what are the main advantage in .net?
what are debugging types in .net?
If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?
What is the difference between session and viewstate?
Is there any property names “isnavigating”?
If you are using two select queries and retrieving data. how do you access second query's result set using data reader?
1 Answers Cap Gemini, Keane India Ltd, MindSquare,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)