Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 11th, 2006, 02:53 PM
Authorized User
 
Join Date: Jun 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server Side Data Passing

My question is pretty simple and I'm surprised I don't know the answer. Here is the situation. I click a button on Page1.aspx that does a post-back to itself, some "processing" is performed, then control is forwarded to PageB.aspx with the new data from the "processing" included. What is the best way accomplish something like this?
 
Old July 11th, 2006, 05:03 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Well this all depends. You could use Server.Transfer("Page1.aspx", True) which will maintain all values in Page1's webform and anything passed via querystring and allow you to work with it on page2.

You could place the values in a session variable, redirect to the next page, then access them there.

You could pass all the values via query string to page2.

Obviously each solution has its own pros and cons just need to pick the best for your situation.

Hth

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing information from server-side script mcinar Classic ASP Basics 4 January 24th, 2005 10:34 PM
passing information from server-side script mcinar HTML Code Clinic 2 January 24th, 2005 04:42 PM
server side data access rizp ASP.NET 1.0 and 1.1 Basics 3 September 6th, 2004 12:41 PM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.