Sep 09, 2008, 10:29 AM
[FIXED] [V0.6] AjaxEvent not working
Hi
Have problems with getting the AjaxEvent to work, I tried this examle from another thread
(http://forums.ext.net/showthread.php...ght=AjaxEvents).
Im using 0.6 of Coolite, and IE 7. The active tabpage does not change, i just get the Ajax loader, and when finished loading nothing happens.
Best regards
Mikael
Have problems with getting the AjaxEvent to work, I tried this examle from another thread
(http://forums.ext.net/showthread.php...ght=AjaxEvents).
Im using 0.6 of Coolite, and IE 7. The active tabpage does not change, i just get the Ajax loader, and when finished loading nothing happens.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Button1_Click(object obj, AjaxEventArgs e)
{
this.TabPanel1.ActiveTabIndex = 1;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Coolite Toolkit : Setting the .ActiveTabIndex on an AjaxEvent</title>
</head>
<body>
<p><a href="ActiveTabIndex.aspx">Reload</a></p>
<form id="Form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<ext:TabPanel ID="TabPanel1" runat="server" Height="300">
<Tabs>
<ext:Tab ID="Tab1" runat="server" Title="Tab 1" Html="Tab 1" />
<ext:Tab ID="Tab2" runat="server" Title="Tab 2" Html="Tab 2" />
</Tabs>
</ext:TabPanel>
<ext:Button ID="Button1" runat="server" Text="Submit">
<AjaxEvents>
<Click OnEvent="Button1_Click" />
</AjaxEvents>
</ext:Button>
</form>
</body>
</html>
Best regards
Mikael