Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Go Back  Xtreme Visual Basic Talk > > > Is 150 WebForm Controls To Much?


Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2008, 09:59 AM
dragonsbb16's Avatar
dragonsbb16 dragonsbb16 is offline
Freshman
 
Join Date: Jul 2005
Posts: 38
Default Is 150 WebForm Controls To Much?


Hello,
I am using VS 2003 (.net 1.1)

I have a Webform.aspx and on that form i have about

160 WebControls
These controls consist of
TextBoxes, Labels, 2-Panels, a few ImageButtons, dropdownlists, and normal buttons....totalling about 160.

I notice that the Form takes FOREVER to load in Visual Studio...it is fine on the web, but in Design mode it takes about 2 min to load.

Is there anything i can do different to help make my form more effecient?

Thanks in advance.
Reply With Quote
  #2  
Old 07-09-2008, 11:52 AM
Qua's Avatar
QuaIs 150 WebForm Controls To Much? Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

I seem to remember some way of letting VS not display controls, but just write their names. I reckon that'd make it a lot faster.

160 controls does seem like a lot for one single page. Consider splitting it up into different pages?
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #3  
Old 07-09-2008, 11:58 AM
dragonsbb16's Avatar
dragonsbb16 dragonsbb16 is offline
Freshman
 
Join Date: Jul 2005
Posts: 38
Default

Thank you for the response.
Yes ill have to look that setting up, if it is there.
As for making 2 screens...that wouldnt be a logical solution for this example, b/c all the information that I am displaying is all pertaining to the Item. This is a Item Detail Page. I think what i could do is this:

I have a Label Control and then a coresponding TextBox....maybe i should replace the Labels to just Plain text rather than using a control. The label controls are static text. I dont really do anything with them. that would eliminate a handful of Label controls.

Let me know if you find out what that setting is to not display controls, just names.
Reply With Quote
  #4  
Old 07-09-2008, 02:22 PM
wayneph's Avatar
waynephIs 150 WebForm Controls To Much? wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

If there's any groups of controls that repeat, you might also consider created your own User Control that contains multiple controls. Then on your main form you only have a single User Control.

For example, if you have a Label, TextBox and CheckBox that all work together, you can make it a single User Control that gets repeated as opposed to all 3 individual controls.

This may be overkill depending on what you need, but it's another thought. Without knowing more about your Data it's hard to make more concrete suggestions.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
  #5  
Old 07-10-2008, 09:07 PM
Qua's Avatar
QuaIs 150 WebForm Controls To Much? Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

Quote:
Originally Posted by dragonsbb16 View Post
I have a Label Control and then a coresponding TextBox....maybe i should replace the Labels to just Plain text rather than using a control. The label controls are static text. I dont really do anything with them. that would eliminate a handful of Label controls.
If you don't need anything dynamical such as localization, then using labels is just a waste indead.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much? Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
 
Is 150 WebForm Controls To Much?
Is 150 WebForm Controls To Much?
 
-->