473,756 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to handle browser back button with Ajax

Hi guys,

I'm running VS2005, AP.net 2.0, Windows XP SP2

Ok this maybe a dumb question but here it goes, as a newbie I've just
finished my first AJAX enable page, everything works great but, until I
press the back and forward buttons in my browser then the AJAX magic is lost
alongside with all the data in my AJAX controls when I tried to get back to
the AJAX page, can anybody help me solve this issue, I've read that this is
the expected behavior of AJAX but have not been able to find a solution.

Best Regards
Mar 27 '07 #1
2 2136
On Mar 27, 11:38 am, "verci" <iodata...@yaho o.comwrote:
Hi guys,

I'm running VS2005, AP.net 2.0, Windows XP SP2

Ok this maybe a dumb question but here it goes, as a newbie I've just
finished my first AJAX enable page, everything works great but, until I
press the back and forward buttons in my browser then the AJAX magic is lost
alongside with all the data in my AJAX controls when I tried to get back to
the AJAX page, can anybody help me solve this issue, I've read that this is
the expected behavior of AJAX but have not been able to find a solution.

Best Regards
Hi....

We have discussed about this issue before ...
Please check out this Issue

http://groups.google.com/group/micro...598f3abd04d1f6

Thanks...

Thanks...
Masudur
http://www.kaz.com.bd
http://munnacs.blogspot.com

Mar 27 '07 #2
you can use the google approach. they run the site in an iframe, which
javascript monitors (their history widget). they support history tokens,
and nav forward/back via the iframe.
note: while css purists hate frames/iframe, ajax sites use them a lot.
you can run async javascript threads via iframes, and maintain client
state between page flips.

-- bruce (sqlwork.com)

verci wrote:
Hi guys,

I'm running VS2005, AP.net 2.0, Windows XP SP2

Ok this maybe a dumb question but here it goes, as a newbie I've just
finished my first AJAX enable page, everything works great but, until I
press the back and forward buttons in my browser then the AJAX magic is lost
alongside with all the data in my AJAX controls when I tried to get back to
the AJAX page, can anybody help me solve this issue, I've read that this is
the expected behavior of AJAX but have not been able to find a solution.

Best Regards

Mar 27 '07 #3

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

Similar topics

27
2747
by: David Golightly | last post by:
This is just a quick poll for all you web devs out there: What browsers do you test on/are concerned about compatibility with? Obviously, you're going to test on current-generation browsers such as IE6, IE7, Firefox 1.5/2, Opera 8/9, Safari 2, etc. How old must a browser be before you stop worrying about it? Anybody here still test on IE4? Thanks,
0
2519
by: toeffetommy | last post by:
Hello, I need a piece of functionality developed for our Website and I need some technical advice on how get there. Essentially, what I want to develop is a browser-within-browser functionality where the ‘mini-browser’ has similar functionality to a normal browser. Let me explain: Firstly, our website interface will open up in a popup window. All the normal browser toolbars and buttons have been removed from the popup window. It’s...
2
1458
by: =?Utf-8?B?QW5zaHVsIEJhbnNhbA==?= | last post by:
Hi I have a search page in which the results are shown in a repeater which is inside an UpdatePanel. The results cotain links to other pages in the site. After clicking any of those links and then click "Bowser Back" button I lose the contents in my repeater. Is there a way we can retain the contents whe using an UpdatePanel? Anshul
2
2845
by: =?ISO-8859-1?B?UOVsIEEu?= | last post by:
Have a "standard" asp.net web solution which uses the standard asp.net authentication and authorization methods (forms authentication). Some users have raised concern that even if you logout (which brings the user back to the login.aspx page) you can seemingly navigate back in via the back-button and the browser history. If user A is viewing a page and then clicks logout and leaves (browser not at login.aspx). User B comes along and...
1
2391
by: CpVermont | last post by:
Good Morning, I am working on a page that uses ajax to display a list of products after a search. The content is displayed in 10 divs created in the DOM. If the search returns more than 10 results. I put the next 10 products into the same DIVS. In other words the user never leaves the page. The problem arises when they use the back button to look at the previous 10 products it takes them clean off the page. In a perfect world we would...
1
1778
by: db007 | last post by:
Hi, I have a problem with a current project and the scroll position. I have an AJAX enabled website using Visual Studio 2005 and ASP.Net 2.0. The project also uses masterpages. On the page in question, there is a search section in an AJAX update panel, situated on the left hand side. Upon submitting criteria and pressing a button, the results are displayed on the right hand side of the page.
5
2813
by: sethia4u | last post by:
Dear Programmers, when I click on logout button I redirect my page to login page again, session variables to null, but when I click on back button previous page is appeared. so plz tell me how I make disable the back button of browser.....
2
1599
by: =?Utf-8?B?SmVmZiBEb25rZXJzZ29lZA==?= | last post by:
I have a registration form that updates a province/state droplist when a country is selected from another droplist. When the user clicks the back button though, the province list goes back to the prior country, but the country list remains the same. This would be ok if the country went back to the prior country as well. Ideally, I would just like the back button to just go back to the previous page that linked to the registration page...
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9872
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7248
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
6534
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
5142
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...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
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
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.