Skip to main content

How To: Compress ViewState in ASP.NET 2.0 - ViewState Compression with System.IO.Compression

I found this article “How To: Compress ViewState in ASP.NET 2.0 - ViewState Compression with System.IO.Compression” with the sample pages that talk about reducing the ASP.NET View State size. It is work reading and implemeting these recomandation in ur ASP.NET website.

I tried their sample myself and copied the view state in the two notepad to compare. You can see in below screenshots (see the scrollbar, one shows lot of scroll available while in second very less scroll)

Before compressing the view state:

image

Before compressing the view state:

image

Side By Side screenshot of before & after compressing the view state: :

image

Article link: How To: Compress ViewState in ASP.NET 2.0 - ViewState Compression with System.IO.Compression




Comments

Popular posts from this blog

SharePoint WebPart Error - Unable to add selected web part (s) – MOSS 2007

ISSUE: Recently I faced this issue that when I try to deploy my WebPart.  Unable to add selected web part(s). WebPartName: Cannon unregister UpdatePanel with ID ‘ctl00RTMPanel’ since it was not registerd with the ScripManager. This might occure if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel.   I faced this issue twice and both the time the issue was not what display here. This could be sure to any error in the WebPart. Following are list resolution from multiple instances.   RESOLUTION: 1. Check the WebPartName.webpart file. Check whether you have a proper PublicKeyToken value. When I face the issue the value was PublicKeyToken=$PublicKeyToken$. If you have used WSP builder then in the Visual Studio you will find this file at \WebPartsProject\12\TEMPLATE\FEATURES\WebPartName\WebPartName.webpart. Sometime when you create a new WebPart using WSP builder then you do not get

How To Create Virtual Machine Using Existing vmdk file in VMWare Workstation

vmdk file is hard disk of the VMWare virtual machine. There are many scenarios where you may need to create a new virtual machine for an existing vmdk file. This is also an alternate Method to the “ vmx is not a valid virtual machine configuration file – Could not open virtual machine ” issue. Please refer to the previous post “ Could not open virtual machine – vmx is not a valid virtual machine configuration file ” for a full list of possible resolution. This post is to describe one of the solution in more details. How To Create a new virtual machine & attach the existing .vmdk file: 1. Open VMware and select create a new virtual machine with custom (advanced) configuration option. 2. Chose “I will install the operating system later”. and chose “I will install the operating system later”. 3. Select the operating system that matches the operating system in your existing .vldk file. 4. Select a location of the new virtual machine 5. Chose “Use an exis

Windows 7 – No Wireless Connection After Install – No Icon in Taskbar or in Network

I forgot to mentioned this important points that your wireless network on newly installed Windows 7 may not work until you connect it to the wired network and install the Windows updates. Right after you install Windows 7, first thing you should do is to connect it to internet via wired internet connection and run Windows updates.