Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > sharing control data between pages

Reply
Thread Tools

sharing control data between pages

 
 
Carlos
Guest
Posts: n/a
 
      10-17-2007
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.


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      10-17-2007
Session variable will do in all cases.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Carlos" <> wrote in message
news:...
> 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.
>



 
Reply With Quote
 
 
 
 
TarTar
Guest
Posts: n/a
 
      10-17-2007
Hello Carlos,

My personal favourite for passing information between pages is
HttpServerUtility.Transfer().
http://msdn2.microsoft.com/en-us/lib...k7(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"

"Carlos" <> wrote in message
news:...
> 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.
>



 
Reply With Quote
 
Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
Guest
Posts: n/a
 
      10-17-2007
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

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net


"Carlos" <> wrote in message
news:...
> 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.
>


 
Reply With Quote
 
Carlos
Guest
Posts: n/a
 
      10-19-2007

That's great Steve. Thank you very much.

Carlos.

"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <> wrote in
message news:229438A0-FB08-44DB-9761-...
> 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
>
> --
> I hope this helps,
> Steve C. Orr,
> MCSD, MVP, CSM, ASPInsider
> http://SteveOrr.net
>
>
> "Carlos" <> wrote in message
> news:...
>> 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.
>>

>



 
Reply With Quote
 
Carlos
Guest
Posts: n/a
 
      10-19-2007
Thanks Eli

"Eliyahu Goldin" <> wrote in
message news:u$...
> Session variable will do in all cases.
>
> --
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
> http://usableasp.net
>
>
> "Carlos" <> wrote in message
> news:...
>> 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.
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing session variables between pages John Devlon ASP .Net 1 07-10-2009 07:20 PM
sharing authentication/authorization between ASP.NET and Classic ASP pages? ASP .Net 1 05-19-2005 11:22 AM
Sharing variables between pages... =?Utf-8?B?QXNoYSBHaWxs?= ASP .Net 2 06-09-2004 06:41 AM
Re: Sharing information between pages S. Justin Gengo ASP .Net 0 08-18-2003 02:30 PM
Sharing one applet between two web pages Sasi Java 0 07-30-2003 01:02 PM



Advertisments