Click here to Skip to main content
11,716,249 members (90,441 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
Add your own
alternative version

Minimizing VIEWSTATE Size and Customization of Server Reponse Via HTTPMODULE

, 19 Oct 2010 CPOL 21.5K 206 14
VIEWSTATE is one of the primary factors which affect your web application. In this article, I will try to highlight the way to compress VIEWSTATE and customize server response using HTTPMODULES
Code.zip
Code
PageStatePersister
bin
Debug
UtilControlsCollection.dll
icon.ico
Properties
WebApplication1
WebApplication1
App_Data
bin
UtilControlsCollection.dll
UtilControlsCollection.pdb
WebApplication1.dll
WebApplication1.pdb
Properties
WebApplication1.csproj.user
WebApplication1.suo
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using SaXXXoN.Controls.Web;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        private ZipPageStatePersister _zipperPSP;

        protected WebForm1()
        {
            this._zipperPSP = new ZipPageStatePersister(this);
        }

        /// <summary>
        /// Overriding to use our custom PageStatePersister
        /// </summary>
        protected override PageStatePersister PageStatePersister
        {
            get
            {
                return _zipperPSP;
                //return base.PageStatePersister;
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Muhammad Shoaib Raja
Software Developer Pakistan Revenu Automation Ltd. (PRAL)
Pakistan Pakistan
I am passionate web developer and mostly works in ASP.NET and Adobe Flex applications. Now my keen of learning is driving me toward Node.js and believe me, i truly love it.

I have just started my blog and you can find it Here

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150901.1 | Last Updated 19 Oct 2010
Article Copyright 2010 by Muhammad Shoaib Raja
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid