Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 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 September 23rd, 2004, 07:17 PM
shs shs is offline
Authorized User
 
Join Date: Mar 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Checking Previous Page

HI,

I have pageA.aspx and PageB.aspx.
I like to check if person in pageA.aspx has alreading been in pageB.aspx.

This means a person goes to pageA, uses a link on the page and go to pageB , insert some values in the pageb's form but then change his/her mind and for selecting new value, goes back to pageA using browser back button. I like to be able to request those values from pageB and pass them to A.

how can I do that?

Thanks
 
Old September 23rd, 2004, 07:44 PM
Authorized User
 
Join Date: Jul 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One way is to use the session state bag...

c#

In page A

Session["Name"] = txtName.Text; // Assuming you have a txtName TextBox


In page B

string NameFromPageA = (string) Session["Name"]; // Null handling left to you!

 
Old September 23rd, 2004, 11:01 PM
shs shs is offline
Authorized User
 
Join Date: Mar 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I have tried that(using VB) and the problem is, the value of textbox is not passed to session variable when I use the [u]browser's back </u>button.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to expire previous page johnsonlim026 ASP.NET 1.0 and 1.1 Basics 6 May 22nd, 2009 12:05 PM
Find previous page gandaliter PHP How-To 2 June 7th, 2007 11:55 AM
Previous Page equal's Nothing jamara ASP.NET 2.0 Professional 9 February 14th, 2007 03:46 PM
Need Expert Advice - Checking Previous Records Zippyfrog Access VBA 4 July 15th, 2006 09:17 AM
next and previous page results mikeuk PHP Databases 1 July 19th, 2004 05:15 AM





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