Click here to Skip to main content
12,555,800 members (62,292 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Howto » Downloads


61 bookmarked

Efficient Server-Side View State Persistence

, 8 Aug 2008 Ms-PL
Increasing the performance of your ASP.NET website by reducing the download footprint of your pages.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewStateInCache.aspx.cs" Inherits="ViewStateInCache" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <title>ViewState In Cache</title>
    <form id="form1" runat="server">
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Make New Record" 
            onclick="Button1_Click" />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" onrowdatabound="GridView1_RowDataBound">
                <asp:TemplateField HeaderText="Time">
                        <asp:Literal ID="Field1" runat="server"></asp:Literal>
                <asp:TemplateField HeaderText="Ticks">
                        <asp:Literal ID="Field2" runat="server"></asp:Literal>
                <asp:TemplateField HeaderText="Random String">
                        <asp:Literal ID="Field3" runat="server"></asp:Literal>
    <asp:HyperLink ID="hlnkDefault" runat="server" NavigateUrl="~/Default.aspx" Text="Back to Default"></asp:HyperLink>

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.


This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


About the Author

Team Leader ICAN
United States United States
Jason Monroe is a Project Manager / Architect with the ICAN grant for the Indiana Department of Education. He has been a professional software developer for 13 years, with the last 8 years focusing on Microsoft technologies.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161021.1 | Last Updated 8 Aug 2008
Article Copyright 2008 by datacop
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid