Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
336
Infragistics controls breaks MS HistoryControl (or ScriptManager 3.6.0.0 with EnableHistory=true) when navigating out of a page.
posted

I have pages that use the Microsoft ScriptManager, and Update Panel.  So far they have worked with the infragistics controls.  Recently I decided to use the Microsoft ASP.NET Futures release for ASP.NET 2.0 and use the HistoryControl to help further assist my navigation within an AJAX update panel.  At first the history control seemed to work well (even with Infragistics controls in the update panel). 

My problem occurs after I have several update panel post backs that add history points, and after I leave the page.  When I return to the page using the back button, any futher backbutton - history.Navigate events seem to be lost.  When I remove all Infragistics controls from the page...the history control works perfect, even after navigating away from the page, then back through the history (ajax and non-ajax history -- using back button).

I created a sample project using VS 2008, ASP 3.5 with AJAX extentions Preview 3.6.0.0.  On the page I have a grid in an ajax update panel.  The grid contains a pager.  If I test without Infragistics controls, you can successfully click through the pager (and it updates with the ajax panel), and you can exit the page and renter the page.  As long as there are no Infragistics controls the history support works fine, you can navigate back and forward through the pager by using the browser back/forward buttons.  I created a second page that is exactly the same, except that it contains an infragistics button.  After navigating through the pager, away from the page, and back...the history seems to be corrupted.


Several notes on my testing:
-- The history only seems to die when you have an infragistics control on the page
--  I have tried (individually) with the WebImageButton, WebTextEdit, WebPanel, and UltraWeb tree.  All of these Infragistics controls seem to create the issue.
-- The issue only occurs when navigating away from the page, and back.  Either via an ahref, or a linkbutton.
-- The issue occurs in both ASP.NET 2.0 (VS 2005) with ASP.NET Futures May/July, and with ASP.NET 3.5 (VS 2008) with ASP.NET Extentions Preview.
-- If I set the BrowserTarget = "DownLevel" for the WebImageButton, and perform the same test of the history, then everything seems to work.

-- My attached demo project will require the Northwind database, you may need to change the connection string in the web.config
-- My attached demo project uses VS2008 with ASP.NET 3.5, and assumes you have the ASP.NET Extentions Preview installed System.Web.Extentions 3.6.0.0

Is this a known defect.  Or is there something I can do programatically to get the history control to work in a page that contains infragistics controls.  (Other than set the BrowserTarget = "DownLevel".

BrowserHistoryVB.zip
  • 25
    posted

    I'm having the same problems with my website. I lose the page history when going back to a page. If I go back once, the back button is gone, but then if I hit the forward button, the page goes forward and can no longer go back.