|
-
Apr 16th, 2006, 05:35 PM
#3
Hyperactive Member
Re: [2.0] Most efficient way to output 20 or so textboxes+labels
 Originally Posted by conipto
I can't see why any way would be more efficient than another, really. If anything I would imagine just laying them out separately would carry the lightest footprint, since if you go the usercontrol route, your usercontrol still contains the textbox and label objects, and ditto with the panel, only now you have a usercontrol object taking up memory too (or the panel)
Easiest is another story.. Creating the controls in a loop, using the tag property creatively to describe what type of validation is required, a nice switch statement, and a single validating function would be the least amount of code probably..
Bill
Yeah, you need to do this with a loop, or else you will end up with a ton of copy and paste. I suggest and Array list of a a control that has both a textbox and a label.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|