当我使用和测试 ext.net 视口 Web 控件时,更新面板不起作用。有趣的是,更新面板与其他提供的 Ext.net 网络控件一起工作得很好。请让我知道如何解决这个问题?示例代码
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<ext:Viewport ID="Viewport2" runat="server" Layout="border">
<Items>
<ext:Panel ID="Panel2" runat="server" Collapsible="True" Height="100" Region="North"
Split="True" Title="North">
<Content>
<asp:Button ID="Button1" runat="server" Text="Button" />
</Content>
</ext:Panel>
<ext:Panel ID="Panel3" runat="server" Collapsible="true" Layout="Fit" Region="East"
<ext:Panel ID="Panel10" runat="server" Collapsible="true" Height="100" Region="South"
Split="true" Title="South">
<Items>
</Items>
</ext:Panel>
<ext:Panel ID="Panel14" runat="server" Layout="Fit" Region="Center" Title="Center">
<Items>
<ext:TabPanel ID="TabPanel2" runat="server" ActiveTabIndex="0" Border="false" Title="Center">
<Items>
<ext:Panel ID="Panel15" runat="server" Closable="true" Title="Tab 1">
<Content>
<asp:MultiView ID="mvMiddle1" runat="server">
<asp:View ID="vMiddleGrid_JK1" runat="server">
//Do something
</asp:View>
<asp:View ID="vMiddleGrid_JK2" runat="server">
//Do something
</asp:View>
</Content>
</ext:Panel>
<ext:Panel ID="Panel16" runat="server" Title="Tab 2">
<Content>
<asp:MultiView ID="mvMiddle2" runat="server">
<asp:View ID="vMiddleGrid2_new" runat="server">
//Do something
</asp:View>
<asp:View ID="vMiddleGrid2_old" runat="server">
//Do something
</asp:View>
</Content>
</ext:Panel>
</Items>
</ext:TabPanel>
</Items>
</ext:Panel>
</Items>
</ext:Viewport>
</ContentTemplate>
</asp:UpdatePanel>
我正在使用 ScriptManager 和 ResourceManager。如果我删除视口控件并使用 div 解决问题,那么一切运行良好。在示例代码中,当我单击 asp 按钮并基于 bll 时,mvMiddle1 将设置为 ActiveViewIndex 0 或 1。这就是它的行为方式,而不是每次都重新加载或回发。