Transfer ViewState between pages

Transfer ViewState between pages

am 04.01.2008 12:56:56 von Alexander Vasilevsky

How transfer ViewState between 2 aspx-pages?

--
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount

Re: Transfer ViewState between pages

am 04.01.2008 13:12:59 von maciek kanski

> How transfer ViewState between 2 aspx-pages?
AFAIK ViewState is designed to store state of the _single_ page on the
client side and your reqirement in my opinion doesn't target the ViewState.

But strictly answering: ViewState is implemented on the page as the
hidden form filed so You can just use this value and POST, GET,
whatever. Then You should properly interpret this value on another page;
with overriding Control.LoadViewState probably You can get the
functionality You asked but I would consider much simpler solution.

Regards

Re: Transfer ViewState between pages

am 04.01.2008 13:55:21 von mark

"Alexander Vasilevsky" wrote in message
news:fll6u0$2ekn$1@behemoth.volia.net...

> How transfer ViewState between 2 aspx-pages?

Use Server.Transfer:
http://msdn2.microsoft.com/en-us/library/caxa892w.aspx

However, this can lead to problems:
http://www.devx.com/vb2themax/Tip/18744


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Re: Transfer ViewState between pages

am 16.01.2008 16:40:08 von jordan.houari

On 4 jan, 13:55, "Mark Rae [MVP]" wrote:
> "Alexander Vasilevsky" wrote in message
>
> news:fll6u0$2ekn$1@behemoth.volia.net...
>
> > How transfer ViewState between 2 aspx-pages?
>
> Use Server.Transfer:http://msdn2.microsoft.com/en-us/library/cax a892w.aspx
>
> However, this can lead to problems:http://www.devx.com/vb2themax/Tip/18744
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

If the data you want to transmit from one page to another, is
reasonably big, you can transmit it via the Session.