我正在使用Infragistics WebTab Control,其中有3个选项卡更改选项卡,selectedindexchanged事件未触发。我在Infragistics论坛上尝试了解决方案,但它们无法正常工作。解决方法之一就是将此代码添加到WebTab控件
EnableReloadingUnselectedTab ="真" EnableAjax ="真" EnableLoadOnDemand ="假" 但事件仍未触发
我的ASPX页面代码是:
<ig:WebTab ID="tbEpip" runat="server" Height="279px" Width="726px"
EnableReloadingUnselectedTab="true" EnableAjax="true" EnableLoadOnDemand="false" OnSelectedIndexChanged = "tbEpip_SelectedIndexChanged"
>
<Tabs>
<ig:ContentTabItem runat="server" Text="Data Download">
</ig:ContentTabItem>
<ig:ContentTabItem runat="server" Text="Data Upload">
<Template>
<table class="ControlUltraTab" style="width:100%" >
</ig:ContentTabItem>
<ig:ContentTabItem runat="server" Text="Memo Generation">
<Template>
我的VB代码是:
Protected Sub tbEpip_SelectedIndexChanged(sender As Object, e As Infragistics.Web.UI.LayoutControls.TabSelectedIndexChangedEventArgs) Handles tbEpip.SelectedIndexChanged
End Sub