Transfer ViewState between pages
am 04.01.2008 12:56:56 von Alexander VasilevskyHow transfer ViewState between 2 aspx-pages?
--
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
How transfer ViewState between 2 aspx-pages?
--
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
> 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
"Alexander Vasilevsky"
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
On 4 jan, 13:55, "Mark Rae [MVP]"
> "Alexander Vasilevsky"
>
> 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.