• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

Speed up Loading of asp.net site when creating Menu / treeview

Hi I am new to as but have built an asp.net website which I am happy with. The only problem is the time it takes to load the pages. I have a large menu/treeview which I think is where the delay is. Its only a few secs per page but this could be too much for customers.

I know i already use if not postback. Is there anything elese you could suggest. I do use the isActive with in the menu.
0
taz8020
Asked:
taz8020
  • 5
  • 4
1 Solution
 
CodeCruiserCommented:
One option is to render the page without menu and then delay load the menu. Now there are many techniques for delay loading such as using JQuery to download the html of the menu and inject it into DOM after rest of the page has loaded.
0
 
taz8020Author Commented:
Ok I like the sound of this, I was thinking of trying to store it in a cookie so save time on other pages. But wauld cause a problem with the selected menu item.

Do you have any code examples to point me in the right direction?
0
 
CodeCruiserCommented:
>I was thinking of trying to store it in a cookie
Store the whole menu in cookie?
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
taz8020Author Commented:
Yes i have never tried but a website was saying it was a good idea to store it in a cookie. If not please explain about the JQuery
0
 
taz8020Author Commented:
I have just read that JQuery is not suported on many browsers. Is there another way that is more compatible?
0
 
CodeCruiserCommented:
Is the menu on the left or top? Can you show a screenshot?
0
 
taz8020Author Commented:
HI CodeCruiser, if i give you a link to the test site you will see what I mean. Its on the left and populates from the database.  The link is http://advantau.w03.winhost.com/

Thanks in advance.
0
 
CodeCruiserCommented:
Wow. That's a big menu. Is using frames an option? The site is not slow in my experience. One option is to build an array and then store it in application

http://support.microsoft.com/kb/309018
0
 
taz8020Author Commented:
Thank you
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now