473,769 Members | 7,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data lost while redirecting to new page

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.redire ct
("schoutput.asp x") 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.redire ct 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

Jul 19 '05 #1
0 1453

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2336
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the main page from the code behind the contents page. I want to do this to allow the use of asp "linkbuttons" instead of hyperlinks so I can do a little processing before redirecting. The main reason for this to prevent hyperlinks of pages that have...
1
2339
by: ramsankar | last post by:
Hi All, When viewing my php page using IE6.0, I am losing my session data. In the first page I am setting a value to the session variable. In the next page "SOME TIME" the value of the session variable is not same as what I set in the previous page. My session data is lost. This is happening very frequently in IE6.0 sp2 and very less frequently in IE6.0 sp1.
3
1613
by: MDB | last post by:
This may sound like a naive question, but that's only because I'm naive about most things ASP.NET, as my background is primarily Lotus Notes Development, and before that, DOS-based FoxPro. Is there a way to group elements, such as a set of textboxes and related labels, in effect giving them a common group name that could then be used to disable/enable other elements on the page? For example if I have a _textChanged event on a textbox...
1
1111
by: So | last post by:
In VS2003, when debugging (with breakpoints set) a ASP.net web project (locally), if an error/exception occurs the browser navigates to the "Server Error" page. After this point it looses all the values stored in the Session objects, and leads to many other errors, before I must refresh the page and restart all over again. What the problem can be? Thanks in advance.
10
12207
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of an object that stores the user's basic profile data (username, user type, associated sales region, etc.). I've been taking this user info and placing it in the Session object like so... Session = user;
4
1496
by: Greg Smalter | last post by:
Redirecting from page to page within a web project is pretty easy. However, all Redirect methods take strings as arguments, as if you mistype the string, you don't find out until run time that you are redirecting to somewhere that doesn't exist. Worse, if you do type it correctly, but then later the page name changes or the page moves, you still won't find out until run time. I have a framework that solves this problem and guarantees,...
0
246
by: merdaad | last post by:
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.
3
1922
by: benoypaul | last post by:
I have created a php script for login using session variables in php . After checking the login information , I redirected to another page using following scripts $username="valid"; session_start(); session_register("username"); echo "<script>"; echo " self.location='loginvendor.php' "; echo "</script>"; In target page , value of session variable was lost. I have used...
13
3071
by: SAL | last post by:
Okay, don't bash me to hard for my design on this app, it's my first web app and it's in production. My basic design is using Datatables created via the designer with a business logic class in between the datatable and ObjectDataSources. In one page I had a Gridview with select enabled. When an row in the grid is selected, I retrieve the SelectedValue, store the value in a Session variable and redirect the response to another web page,...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.