Hi all,
what is the best way to share the data of lets say a textbox text between
pages?
for example if I fill the textbox in one page and later redirect to a new
page, and
I would like to have that information there as well (VB). Thanks in advance.
Carlos.
Eliyahu Goldin - 17 Oct 2007 14:44 GMT
Session variable will do in all cases.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> Hi all,
>
[quoted text clipped - 6 lines]
>
> Carlos.
Carlos - 19 Oct 2007 19:48 GMT
Thanks Eli
> Session variable will do in all cases.
>
[quoted text clipped - 8 lines]
>>
>> Carlos.
TarTar - 17 Oct 2007 18:11 GMT
Hello Carlos,
My personal favourite for passing information between pages is
HttpServerUtility.Transfer().
http://msdn2.microsoft.com/en-us/library/y4k58xk7(VS.80).aspx
"Transfer method preserves the QueryString and Form collections." It means
you can access previous page's view state.
If you use ASP.NET 2.0, google for "Cross-Page Postings" and the PostBackUrl
property.
Cheers,
Leszek "TarTar"
> Hi all,
>
[quoted text clipped - 6 lines]
>
> Carlos.
Steve C. Orr [MCSD, MVP, CSM, ASP Insider] - 17 Oct 2007 22:38 GMT
You could use Server.Transfer instead of Response.Redirect.
Then you could use Context to access the PreviousPage (and it's controls)
directly.
Here's more info:
http://SteveOrr.net/articles/PassData.aspx
http://SteveOrr.net/faq/TransferRedirect.aspx

Signature
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
> Hi all,
>
[quoted text clipped - 6 lines]
>
> Carlos.
Carlos - 19 Oct 2007 19:48 GMT
That's great Steve. Thank you very much.
Carlos.
> You could use Server.Transfer instead of Response.Redirect.
> Then you could use Context to access the PreviousPage (and it's controls)
[quoted text clipped - 13 lines]
>>
>> Carlos.