we are having ajax enable website version .net 2.0 .i am hving pages with huge size .this is causing poor performence

Posted on 2011-05-04
Last Modified: 2013-11-07
please tell us how to reduce page size in .net 2.0
Question by:sharath1981
    LVL 17

    Expert Comment

    by:Carlos Villegas
    Hi, because without more info is hard to know exactly the source of your problem, I will give you some tips:
    1. Be sure to not be saving big data objects in the viewstate

    2. Disable viewstate for that objects that dont need it.

    3. Consider use a server side solution to persist the page viewstate (session, db), more info:

    4. Use this in your code:
    protected override PageStatePersister PageStatePersister
        get { return new SessionPageStatePersister(this); }

    Open in new window


    5. Enable http compression in your IIS settings.
    LVL 20

    Expert Comment

    My guess is u r talkin of the ScriptResource files tht get downloaded while using Ajax. Try to take look at info on CDN

    Author Comment

    please explain in detail where i have to check regarding script resources
    LVL 6

    Expert Comment

    I agree with experts, you need to watch out for viewstate and script resources to reduce page size

    Here's the details;
    Store viewstate on server

    Combing script resources

    Accepted Solution

    we have reduced page size by reducing th e dropdowns

    Author Closing Comment


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now