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
Who is Participating?
sharath1981Connect With a Mentor Author Commented:
we have reduced page size by reducing th e dropdowns
Carlos VillegasFull Stack .NET DeveloperCommented:
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.
Obadiah ChristopherCommented:
My guess is u r talkin of the ScriptResource files tht get downloaded while using Ajax. Try to take look at info on CDN
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

sharath1981Author Commented:
please explain in detail where i have to check regarding script resources
Maulik ModiCommented:
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
sharath1981Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.