Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 13th, 2004, 09:31 AM
Registered User
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Save and Load viewstate

the general question is "Is anyone have an idea on how to implement a load button which will make the viewstate to load with a specific file ?"

[u]details :</u>
I have some web forms which allow to select data to make request on Reporting Services.

Now i have to add a functionnality to these web forms. On every web forms (which are not using the same controls), i must provide a way to save the data selected. Of course, i want to use the same functionnality to save the state of each web forms.

So my idea was to use the viewstate, i override "LoadPageStateFromPersistenceMedium" and "SavePageStateToPersistenceMedium" to store the viewState into a file, so when the user want to save is request, i store the file corresponding to the viewstate into another directory and when the user want to load the latest request, i want to use this file to load the viewstate.

everything is working, expect that i can't figure out how to load correctly this viewstate. I mean i don't know how to implement a load button which will load the file ... because the method which load the viewstate is called before my "LOAD" button method, i can only see my data when i click a second time on it ...

SO Is anyone have an idea on how to implement a load button which will make the viewstate to load a specific file ?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Load mspaint.exe from Visual Basic and save it Andraw Pro VB 6 4 November 10th, 2008 06:01 PM
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
Load previous page with it's viewstate SAgosto ASP.NET 2.0 Professional 1 January 22nd, 2008 05:03 AM
Using Control State to save/load values VictorVictor ASP.NET 2.0 Professional 0 March 29th, 2007 03:14 PM
ViewState abdul_owiusa General .NET 0 October 18th, 2005 04:37 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.