Monday, March 12, 2012

what is the difference between Html controls and web controls?

hello

what is the difference between Html controls and web controls?

thank you for the time and for the helpThe HTML control is the standard control.
The Web Forms control maps back to a class on the server.

so

An HTML Button is an input control

A Web Forms Button works more like a winforms button in that it has an onclick event that fires on the server during a postback.

etc...
html control is just an enhancement of the input type controls already existing, with the additional flexibilities of .net

web controls are more sophisticated, vulnerable controls which are very useful in web forms for better performance and quicker execution.

for example you have a checkboxcontrol in addition to checkbox. the checkboxcontrol can be dynamically created from DB, Similarly there are Dropdownlists and RadioButtonControls which can be dynamically populated with less effort (in terms of writing code)

hope this gives a better prospect
I dont agree.

html controls are not enhanced in any way. they are the standard input type control that we've always used.

web controls are also not for better performance and quicker execution. the web controls tie back to the code behind class and give you much greater programming flexibility. this flexibility does come at a price - namely cpu cycles.

for example, if you need a table to control position of your html elements but you DONT need to programatically interact with the table, then use the standard html table and dont use the .NET web forms table control.

the page will run faster with the standard html table.
There's a web control for a table?
Wow I just looked in VS.NET and saw it for the first time lol. I've never seen it used in any code examples anywhere.

0 comments:

Post a Comment