I would put an update panel inside the tab control rather than surrounding it.
<ajaxToolkit:TabContainer runat="server" ID="Tabs" ForeColor="black" Height="150px">
<ajaxToolkit:TabPanel runat="Server" ID="SAT1_Panel" HeaderText="SAT I">
<ContentTemplate>
<asp:UpdatePanel ID="SAT1_UpdaetPanel" runat="server">
<ContentTemplate
<asp:Label ID="Label4" runat="server" />
<asp:Button ID="btnTest" Text="Test Me" OnClick="UpdatePanel3" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
Sohnee,
I know that already, I just want to know if it's a bug of what i posted.
What is the exactly problem?
I've test the following codes, it works:
<%@. Page Language="C#" %>
<%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!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 UpdatePanel3(object sender, EventArgs e)
{
Label4.Text = DateTime.Now.ToString();
}
</script><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="SAT1_UpdaetPanel" runat="server">
<ContentTemplate>
<ajaxToolkit:TabContainer runat="server" ID="Tabs" ForeColor="black" Height="150px">
<ajaxToolkit:TabPanel runat="Server" ID="SAT1_Panel" HeaderText="SAT I">
<ContentTemplate>
<asp:Label ID="Label4" runat="server" />
<asp:Button ID="btnTest" Text="Test Me" OnClick="UpdatePanel3" runat="server" />
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
I am afraid I cannot find out the exact root cause without further information captured when the problem occurs.
To troubleshoot this issue, we really need more source code to reproduce the problem, so that we can investigate the issue in house. It is not necessary that you send out the complete source of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business logic from it.
Thank you.
No comments:
Post a Comment