473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

History is lost when redirecting to a new page

Hello,

I have a couple of web apps built using C# in VS2008 (.NET 2.0) and in
some circumstances they exhibit an anoying feature. If I start in appA
and follow a link to appB I can still see the history and navigate
back if I choose to do so but, whilst in appB if I press a button to
redirect back to itself only returning different data the history is
lost and I can no longer navigate back to appA.

No JavaScript is used in the applications, so what could be clearing
the clients history in appB?

Any suggestions?
Sep 30 '08 #1
4 2081
More info...

The problem is not due to the redirection as I can simulate the
problem on the same site. In this revised scenario I start in appA and
preview some data. I then change my parameters (fields) and preview
another set of data and the recent history (back/forward buttons) is
lost.

I suspect that this is something to do with the volume of data
returned in one of my returned data sources.

Are there any known issues with datasource size and sessions? I'm
aware of a viewstate limit (default 4MB) but I don't think this
problem is related to that.

Any suggestions?
Sep 30 '08 #2
On Sep 30, 12:29*pm, "<M>" <m_din...@hotmail.comwrote:
More info...

The problem is not due to the redirection as I can simulate the
problem on the same site. In this revised scenario I start in appA and
preview some data. I then change my parameters (fields) and preview
another set of data and the recent history (back/forward buttons) is
lost.

I suspect that this is something to do with the volume of data
returned in one of my returned data sources.

Are there any known issues with datasource size and sessions? I'm
aware of a viewstate limit (default 4MB) but I don't think this
problem is related to that.

Any suggestions?
How do you go through the pages, using a postback?

Look at the following article, might be helpful
http://codebetter.com/blogs/peter.va...19/129384.aspx
Sep 30 '08 #3
On Sep 30, 8:04*pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On Sep 30, 12:29*pm, "<M>" <m_din...@hotmail.comwrote:


More info...
The problem is not due to the redirection as I can simulate the
problem on the same site. In this revised scenario I start in appA and
preview some data. I then change my parameters (fields) and preview
another set of data and the recent history (back/forward buttons) is
lost.
I suspect that this is something to do with the volume of data
returned in one of my returned data sources.
Are there any known issues with datasource size and sessions? I'm
aware of a viewstate limit (default 4MB) but I don't think this
problem is related to that.
Any suggestions?

How do you go through the pages, using a postback?

Look at the following article, might be helpfulhttp://codebetter.com/blogs/peter.van.ooijen/archive/2005/07/19/12938...- Hide quoted text -

- Show quoted text -
Yeap, a postback is called when the buttons are pressed. If necessary
this causes a response.redirect, but i've noted that the problem still
occurrs even if I postback to the same page.

From reading around the symptoms sound like the users session is being
restarted. I can see that the same session cookie is being passed to
the server, but the missing history indicates that the session has
been cleared.

Any thoughts on what could clear the session?

Mike
Oct 1 '08 #4
After much head scratching and bemusement I discovered that if I
turned of fthe view state for the dataGrid and just repopulated it
each time then my problem was not longer evident. This isn't to say
that its fixed the problem as I still don't know what the cause of the
error was, but for the moment I can use the site and keep my history.
Oct 9 '08 #5

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

Similar topics

0
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...
0
by: hn | last post by:
Hi In my asp.net application I use Response.redirect to go from pages to pages. Everything is fine until a search function on a page is performed (it's a sql select and the result is bound to a...
2
by: | last post by:
I am working on an ASP.NET application that seems to be limiting browser histories to only one entry. I am not using SmartNavigation on any of the pages, and that is the only thing that I have...
3
by: Alan | last post by:
I have a form that contains many fields for the user to enter. After entering the data the user can click a link to open a new window, the new window contains six columns (pull down menu) and 30...
6
by: divya | last post by:
I have a page name edit.asp which should expire immediately .The user cannot open this page directly he has to provide a password for entering this page.thus when the user enters edit.asp , it has...
2
by: sujith.bolar | last post by:
Hello I am using a <form method="post"to submit values to the processing agent. If the processing agent returns an error, I call the history.go(-1) or history.back() function to reload the page....
4
by: tomeq10 | last post by:
Hi All, I have this problem. I have a main page, and option to show popup window. This popup window is div + iframe based. When User clicks to open this popup, he do some staff on it, there are...
6
by: Trastabuga | last post by:
On the current page the user is at I need to write something like "Please, wait" (I am using document.write for this) and then open a new url with some lengthy calculation process so the page will...
3
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 ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.