|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using html controls or asp controlsIf 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 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. -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > 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 >
Dynamic Web Control Event Handling
Question about IE Web Controls Toolbar. Displaying label at runtime MasterPages in ASP.NET 2.0 Need a list of radiobuttons with a specfic format asp.net 1.1 wizard control Alignment of a System.Web.UI.WebControls.Image object Datagrid problem Iterate TreeView element with 'disabled' property doesnt exist for form processing ? |
|||||||||||||||||||||||