Intersoft WebGrid Documentation
Walkthrough: Configuring WebGrid to keep data cache in local computer's hard drive
See Also Send comments on this topic.

Glossary Item Box

This walkthrough shows you how to keep data cache in local computer's hard drive. With FileServer, you no longer have to worry about memory leaks or limited server resources. 

During this walkthrough, you will learn:

 Prerequisites

In order to complete this walkthrough, you will need the following:

  • Visual Studio 2005 Application.

 Step-By-Step Instructions

To keep data cache in local computer's hard drive

  1. Launch Visual Studio.NET 2005.
  2. Click on File menu, then select New and click Project.
  3. Select Visual C# Project in Project Types.
  4. Select ASP.NET Web Application in the Template box.
  5. Specify the Project's Location and click OK.
  6. Drag a WebGrid into WebForm.
  7. Drag an ISDataSource into WebForm.
  8. Right click to the ISDatasource1 and select Configure Datasource, choose SchemaType to DataSet and Schema Name dsNorthWind_ReadOnly then click Next.
  9. Add Products table and click Finish.
  10. Go to View State Settings, and set ViewStateStorage to FileServer.
  11. Set ViewStateServerConnection to �??path=c:\CacheStorage�?�ViewStateServer
Note: The specified path (eg. c:\CacheStorage) requires read and write permission for aspnet_wp worker process (in IIS 5.x) or iis_wpg (in IIS 6+)

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.