Link to home
Start Free TrialLog in
Avatar of sharath1981
sharath1981

asked on

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

please tell us how to reduce page size in .net 2.0
Avatar of Carlos Villegas
Carlos Villegas
Flag of United States of America image

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: http://aspnetresources.com/blog/page_state_persisters_overview

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

Open in new window

Reference: http://msdn.microsoft.com/en-us/library/aa479403.aspx

5. Enable http compression in your IIS settings.
Avatar of Obadiah Christopher
My guess is u r talkin of the ScriptResource files tht get downloaded while using Ajax. Try to take look at info on CDN
Avatar of sharath1981
sharath1981

ASKER

please explain in detail where i have to check regarding script resources
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
ASKER CERTIFIED SOLUTION
Avatar of sharath1981
sharath1981

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes