PC Review


Reply
Thread Tools Rate Thread

Data lost while redirecting to new page

 
 
merdaad
Guest
Posts: n/a
 
      28th Jul 2003
I am doing a database search from inside my class (vb)
file. I get back lines of data which I would like to
display in a new HTML page.

After I complete my search and find the records, I want to
immediately display the items without having to go to the
database again. So I do a response.redirect
("schoutput.aspx") The new serach screen appears but my
data (the list of my found items) is lost.

I traced the code in the debugger and saw that before the
new URL is displayed, a new PageLoad is done on the
calling (search) page. That clears all of my variables
that were loaded with new values.

On the Search page, Apparantly a total of 3 pageloads are
done:
1. In the beginning and before search criteria prompts are
displayed.
2. Seconds after the search Criteria is entered (this is
where data is located and my variables are loaded).
3. Third after I do the response.redirect call.
When this last PageLoad is done all of my variables from
#2 are reset.

Do you know how I can redirect the data to the new page
without losing the data.

The new page is associated with the class (the calling VB
module) and does see the data before it's reset.

Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
History is lost when redirecting to a new page Microsoft ASP .NET 4 9th Oct 2008 10:17 AM
Page Redirecting damiensawyer@yahoo.com.au Microsoft ASP .NET 3 25th Jun 2008 12:31 AM
Redirecting a page =?Utf-8?B?bXJpdmVz?= Microsoft Frontpage 3 1st Mar 2006 10:50 PM
Re: Error when redirecting to an asp page from an aspx page Loui Mercieca Microsoft ASP .NET 1 3rd Sep 2005 05:31 PM
data before page break lost during import =?Utf-8?B?amF2YWpveQ==?= Microsoft Excel Misc 0 24th Feb 2005 09:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:36 AM.