Accessing another page's viewstate after server.transfer

G

Guest

Is it possible to access the previous page's viewstate directly through the
context object after a server.transfer. If so, how?

The way i'm doing it is saving all needed items to a structure on the
previous page, then accessing its variables. I would like a much more direct
way if one exists.

thanks
 
M

Mikael Gustavsson

Hi!

I don't really know if what you want is possible or not. But it seems to me
as if you should take a look at sessionstate instead of viewstate.

ViewState is saved in hidden fields on the client. SessionState on the other
hand is saved on the serverside. This will reduce the ammount of data sent
back and forth to the server as well. Then you can keep variables from any
page.

Well, I hope you get some help out of this

//Mikael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top