我有一个带有 2 个标签页的 JuiceUI Tabs 控件。回发后,对于 Chrome 和 Firefox,单击第二个选项卡不会再转到选项卡页。我正在使用 Visual Studio 2012、jquery 1.9.1、jquery-ui 1.10.1 和 juiceui。
<form id="form1" runat="server">
<div style="font-size: 14px;">
<asp:Button ID="Button1" runat="server" Text="Update Tab" OnClick="Button1_Click" />
<br />
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<juice:Tabs ID="Tabs1" runat="server">
<juice:TabPage ID="TabPage1" Title="First Tab" runat="server">
<TabContent>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<juice:Datepicker ID="Datapicker1" runat="server" TargetControlID="TextBox1" />
</TabContent>
</juice:TabPage>
<juice:TabPage ID="TabPage2" Title="Second Tab" runat="server">
<TabContent>
<asp:Label ID="Label2" runat="server" Text="Label 2"></asp:Label>
</TabContent>
</juice:TabPage>
</juice:Tabs>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
这是服务器代码:
public partial class WebForm4 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label lbl = (Label) TabPage1.FindControl("Label1");
if (lbl != null)
{
lbl.Text = DateTime.Now.ToString();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
}
}