CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/30/2007 9:10:30 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
maxald
Asp.Net User
Huge viewstate with treeview7/30/2007 9:10:30 AM

0/0

Hi! Im using the treeview control as a menu on my page. It works fine except that my viewstate is getting really big. Is there anyone that have some ideas how to trim my tree view (disable viewstate is not an option)? There is also an empty table tag surrounding each node in my tree view, can it be deleted?

 

maxald
Asp.Net User
Re: Huge viewstate with treeview7/30/2007 11:31:34 AM

0/0

I have found one attribute that really did some magic! :) 

PopulateOnDemand="true" in <asp:TreeNodeBinding />

Sure there is of course a small preformance drop when you expand or close nodes in the treeview control. But my page size shrinked from 170kb to 68kb so my overall performance really did get a boost! I've also shortened some id's that gave me a few more kb's...

maxald
Asp.Net User
Re: Huge viewstate with treeview7/30/2007 12:19:21 PM

0/0

Another question, same issue... is it possible to close the previous opened node on the client when you expand a new one so there will allways be only one node open?

maxald
Asp.Net User
Re: Huge viewstate with treeview7/30/2007 1:23:44 PM

0/0

PopulateOnDemand wasn't as good as I thought... once a node has been opened it is added to viewstate and there it stays over postbacks even if it is closed. Sad Is there any other menu alternatives when you have a LARGE amount of links (1000+) to be displayed? Erlier I was using the <asp:menu> but the performance when there was so many items in it was extremely bad. Thats why I am using the treeview as a menu, still I would prefer a three level menu of some kind.

 Here I have a beta of my webbpage, its the brown menu to the left at default.aspx (the menu contains swedish letters so it might look strange but I think you got the idea anyway)

http://217.209.222.143/beta_test.aspx
pass: norraavagen

Johnson2007
Asp.Net User
Re: Huge viewstate with treeview8/2/2007 10:00:47 AM

0/0

Your treeview menu is very orderliness and beautiful. but I think to reduce the viewstate the easiest way is to generate you treeview nodes dynamicly. I saw the number of the treeview's nodes is not very large. So I sugguest that you generage the nodes dynamicly.

May it helps...


Johnson
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Beginning Visual C# 2005 Authors: Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White, Pages: 1062, Published: 2006
10 Coding4Fun Projects with .NET: Programming Projects for Wiimote, YouTube, World of Warcraft, and More Authors: Dan Fernandez, Brian Peek, Pages: 528, Published: 2008
Expert ASP.NET 2.0 Advanced Application Design: Advanced Application Design Authors: Dominic Selly, Andrew Troelsen, Tom Barnaby, Pages: 459, Published: 2005
Visual Basic .NET Scalability Handbook Authors: Damon Allison, Ben Hyrman, Pages: 370, Published: 2002
ASP.NET 3.5 For Dummies Authors: Ken Cox, Pages: 404, Published: 2008

Web:
TreeView Is Causing a Huge VIEWSTATE - ASP.NET Forums Re: TreeView Is Causing a Huge VIEWSTATE. 09-09-2003, 9:38 AM. Contact ... Re: TreeView Is Causing a Huge VIEWSTATE. 09-09-2003, 12:21 PM ...
Huge viewstate with treeview - ASP.NET Forums Re: Huge viewstate with treeview. 07-30-2007, 7:31 AM. Contact ... Re: Huge viewstate with treeview. 07-30-2007, 8:19 AM. Contact ...
Maintain Tree View State - .NET ASP Maintain Tree View State. Get answers to your questions in our .NET ASP forum.
Maintain Tree View State Talk about Maintain Tree View State. ... Maintain Tree View State. I have a treeview control that I use as a menu & navigation control ...
Ritesh Kesharwani: How to Maintain Tree view state after page post ... Sep 11, 2007 ... Here we can save tree view state into List control and Restore saved state when page again get post back or user clicks F5/refresh. ...
"Decoding to TreeView" fails when ViewState elements contain Html Re: "Decoding to TreeView" fails when ViewState elements contain Html. « Reply # 1 on: February 26, 2007, 05:46:48 pm » ...
How to Maintain Treeview View State after clicking node.. : C# Aug 26, 2008 ... Hiii Sir, I am s sharepoint developer, i made one connected web part for sharepoint list item. i used treeview control in one web part and ...
MSDN Enable ViewState for TreeView in master page Is there any way to apply a ViewState behaviour to that tree view so it remebers it's expanded/collapsed state when someone is clicking through the site? ...
running TreeView without viewstate Talk about running TreeView without viewstate. ... Using a treeview with viewstate enabled easily generates very big viewstates ...
FlyTreeView for ASP.NET Download - Treeview for ASP.NET (viewstate ... FlyTreeView for ASP.NET download page. Treeview for ASP.NET (viewstate, client model, load-on-demand, ADO.NET...)




Search This Site:










skinning solpartmenu with multiple images

meta tags and masterpages

using a different domain name

refreshing custom control after main page postback

foreign key

problem with core null.isnull function

enhanced links module

html text layout in dnn

how do i authenticate users in oracle database?

multiple pages for one information source?

treeview and the navigateurl not working

anyone have an idea how this could be done in solpartmenu?

looking for a great skin designer

uk portal developer ?

installing multiple applications on on computer

immediate help in asp.net link button

securing html files in a folder

subquery returned more than 1 value after upgrade

vb2k8 import problem in asp.net page

changing membership user's email address.

problem migrating development nuke to another computer

no intellisense

update linq when database schema udpated

copy a site

3.0.12 whooooooopyyyyyyyyyyy!!!!!!

help..microsoft.web.ui.webcontrols.treeview in net 2

the dotnetnuke experience is a disaster.

themes + meta headers (head tags)

new install - database connection error

new book - professional dotnetnuke 4.0

 
All Times Are GMT