[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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
6
Medium Priority
?
268 Views
Last Modified: 2013-11-07
please tell us how to reduce page size in .net 2.0
0
Comment
Question by:sharath1981
6 Comments
 
LVL 17

Expert Comment

by:Carlos Villegas
ID: 35695826
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.
0
 
LVL 20

Expert Comment

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

Author Comment

by:sharath1981
ID: 35695913
please explain in detail where i have to check regarding script resources
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 6

Expert Comment

by:Maulik Modi
ID: 35763463
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
0
 

Accepted Solution

by:
sharath1981 earned 0 total points
ID: 36300350
we have reduced page size by reducing th e dropdowns
0
 

Author Closing Comment

by:sharath1981
ID: 36323994
yes
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview
Suggested Courses

873 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