Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
ASP.NET
Web Forms
Designing for Performance
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Neal" data-source="post: 484" data-attributes="member: 1"><p>I am building a small asp.net application that started out as a small project and is now growing into quite an involved application. I put everything on one page (Default.aspx) and was just using the asp panel control to show/hide areas. Well, the viewstate grew quite large (datagrids in use as well) and now I want to "break it up" to see if I can make it perform better.</p><p></p><p>I was thinking of two options, again, keep viewstate in mind as that's the biggy here, the text/source sent to the client. I took each panel with contents and placed them in their own user control now (.ascx). So the Default.aspx page can load the user controls for use. Which if the two options will keep the viewstate under control (yes, viewstate is required), or do these both end up in the same end result:</p><p></p><ol> <li data-xf-list-type="ol">Drag and drop each of the five usercontrols onto the main page, then just set visibility toggles to only show one depending on the navigation area. Only 1 is shown at any one time, out of 5 areas.</li> <li data-xf-list-type="ol">Use a asp placeholder control and do a Loadcontrol when the control is called</li> </ol><p>So, do they both end up the same, or is #2 better as only one control is actually loaded? I guess my question is, with #1, dragging and dropping user controls, are they loaded all the time, or only when set to visible? (viewstate). I think since it's server side, and not visible, it isn't sent to the client.</p><p></p><p>Come to think of it, if you put a gazillion controls on a web form but all but one are visible, would that affect performance (client side)? I am now thinking that breaking this into components is going to make no difference!</p><p></p><p>Any suggestions?</p></blockquote><p></p>
[QUOTE="Neal, post: 484, member: 1"] I am building a small asp.net application that started out as a small project and is now growing into quite an involved application. I put everything on one page (Default.aspx) and was just using the asp panel control to show/hide areas. Well, the viewstate grew quite large (datagrids in use as well) and now I want to "break it up" to see if I can make it perform better. I was thinking of two options, again, keep viewstate in mind as that's the biggy here, the text/source sent to the client. I took each panel with contents and placed them in their own user control now (.ascx). So the Default.aspx page can load the user controls for use. Which if the two options will keep the viewstate under control (yes, viewstate is required), or do these both end up in the same end result: [list=1] [*]Drag and drop each of the five usercontrols onto the main page, then just set visibility toggles to only show one depending on the navigation area. Only 1 is shown at any one time, out of 5 areas. [*]Use a asp placeholder control and do a Loadcontrol when the control is called [/list]So, do they both end up the same, or is #2 better as only one control is actually loaded? I guess my question is, with #1, dragging and dropping user controls, are they loaded all the time, or only when set to visible? (viewstate). I think since it's server side, and not visible, it isn't sent to the client. Come to think of it, if you put a gazillion controls on a web form but all but one are visible, would that affect performance (client side)? I am now thinking that breaking this into components is going to make no difference! Any suggestions? [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
ASP.NET
Web Forms
Designing for Performance
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom