Using html controls or asp controls

U

UJ

If I have a total choice, should I use html controls (like a select list) or
use the same type of thing in ASP (asp:dropdownlistbox).

I guess what I'm asking is if I don't need all the extra stuff the asp
objects bring along, is using the html stuff reasonable? Will it be
faster/less memory ? Or is it about the same.

TIA - Jeffrey
 
B

Brock Allen

In general the server side controls all perform the same -- meaning using
<input type=text runat=server> is the same as <asp:TextBox>. For me, I prefer
the <asp:Xyx> WebControls as they tend to provide a richer, higher level
and more consistent API. They provide a greater abstraction. The situation
when I'd choose a HtmlControl is if either I don't need a server event to
fire, but I do want to work with it programmitically (as a control object)
or if I want lower level control over the rendering. And even for the lower
level control of the rendering, most of what you'd want to do can be accomplished
with WebControls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top