By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,341 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,341 IT Pros & Developers. It's quick & easy.

History is lost when redirecting to a new page

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.