Originally Posted by
Jean-Pierre Poulin
I just tested with Google Chrome and my solution does not work. I think that change event is never raised. Do you have any idea why?
Hi,
I just tested the page below. Yes, it works well in IE9 and FireFox. Also it partially works in Chrome. "Partially" means the following. If I open a new tab and load this page, then it seems don't work, i.e. an empty page is opened after clicking the Back button. If I open some other page first, then open my page, then it works well.
Looking this issue up on the internet might help to find some solution for Chrome.
Example
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Ext.NET Example</title>
<script type="text/javascript">
var blockBackButton = function () {
History1.add("empty");
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server">
<Listeners>
<DocumentReady Handler="blockBackButton();" />
</Listeners>
</ext:ResourceManager>
<ext:History ID="History1" runat="server" >
<Listeners>
<Change Fn="blockBackButton" />
</Listeners>
</ext:History>
Try to "Back"
</form>
</body>
</html>