UpdatePanel无法正常工作

时间:2018-05-14 07:05:27

标签: asp.net

我有以下更新面板,但它似乎并不想更新。 AsyncPostBackTrigger GroupApply2没有更新,我真的很困惑为什么。我试过搬东西但没有运气。有什么想法吗?脚本管理器显然是特定的,我在其他页面上运行更新就好了。

<asp:UpdatePanel ID="UPan01" runat="Server" UpdateMode="always">
    <ContentTemplate>
        <p>
            How is this group applied?:
            <asp:DropDownList ID="GroupApply2" CssClass="textbox" runat="server" AutoPostBack="true" OnSelectedIndexChanged="GroupApply2_SelectedIndexChanged">
                <asp:ListItem Text="Select" />
                <asp:ListItem Text="To the Country " />
                <asp:ListItem Text="Just Your Site" />
                <asp:ListItem Text="Commodity" />
            </asp:DropDownList>
        </p>
        <asp:Label ID="Build2" runat="server" Text="Label" Visible="true"></asp:Label>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="GroupApply2" EventName="SelectedIndexChanged" />
    </Triggers>
</asp:UpdatePanel>

1 个答案:

答案 0 :(得分:0)

弄清楚,对不起只是需要一些手持我猜!我的构建在c#代码中运行良好,我将其中的大部分内容删除,并且它在某些地方起作用,阻止了它的工作。

谢谢