Back Button Behaviour issue....

0 views
Skip to first unread message

Aman Sharma

unread,
Mar 18, 2008, 4:26:11 AM3/18/08
to DotNetDe...@googlegroups.com
Hi
 
VS2005 & AJAX
============
 
I am using C# and AJAX to fetch and display the data. Now issue is..... if user clicks on Browser's Back Button.... it shows unpredicted results.
 
As per my knowledge this is one of the disadvantage with AJAX. But I wonder in "Gmail" although AJAX is used yet Browser's Back button works fine. Is there any solution for this issue....
 
Pls suggest the needful.

Andrew Badera

unread,
Mar 18, 2008, 5:38:45 AM3/18/08
to DotNetDe...@googlegroups.com
hahaha ahhhh ... Google has written a TON of JavaScript to handle keyboard and browser events. I guarantee it's complex. If you find otherwise, I'd love to hear it, but I suspect you'll find it's yet another case of Google's immense resources simply grunting their way through a challenging task.

The back button has always been tough to handle. Pesonally, I used to wipe the browser history on every page refresh. I don't know what current best practice is, however.
--
--Andy Badera
http://andrew.badera.us/
and...@badera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera

Aman Sharma

unread,
Mar 18, 2008, 5:49:10 AM3/18/08
to DotNetDe...@googlegroups.com
To wipe the browser history is not recommended as well as it is not a big deal......
The thing is browser's Back Button should do its normal behaviour.
I know there are planty of articles available and I have gone through them but could not make them out..... so posted here for further suggestions......
Well..... If I could find solutions from experts who might have gone through with this situation... I shall strike lucky... :)

 

Jim Losi

unread,
Mar 19, 2008, 7:58:34 AM3/19/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
This is probably not the answer you want to hear but there is a
History control in the .NET 3.5 framework extensions (BETA) that
allows you to deal with this. It does not work in the AJAX 1.0
framework unfortunately and it was removed from the "Futures" CTP.
However, Nikhil Kothari wrote a history control that might perform
well enough for you. http://www.nikhilk.net/UpdateControls.aspx

Good Luck.
Reply all
Reply to author
Forward
0 new messages