none
使用ajax工具包出现的问题 RRS feed

  • 问题

  •   <tr>
                                                                <td class="SuperviseTaskTD1">
                                                                    执行人:</td>
                                                                <td class="SuperviseTaskTD2">
                                                                    <asp:DropDownList ID="Responsepersons" runat="server" AppendDataBoundItems="True"
                                                                        OnSelectedIndexChanged="Responsepersons_SelectedIndexChanged" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="SuperviseTaskTD3">
                                                                    审批人:</td>
                                                                <td class="SuperviseTaskTD4">
                                                                    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                                                        <ContentTemplate>
                                                                            <asp:DropDownList ID="Approvalpersons" runat="server" AppendDataBoundItems="True">
                                                                            </asp:DropDownList>
                                                                             <asp:HiddenField ID="hdPositionStandUserid" runat="server" />
                                                                             <asp:HiddenField ID="hdPositionStandUsername" runat="server" />
                                                                             <asp:HiddenField ID="hdPositionStandouid" runat="server" />
                                                                        </ContentTemplate>
                                                                        <Triggers>
                                                                            <asp:AsyncPostBackTrigger ControlID="Responsepersons" EventName="SelectedIndexChanged" />
                                                                        </Triggers>
                                                                    </asp:UpdatePanel>
                                                                </td>
                                                            </tr> 

    <tr>
                                                                <td class="SuperviseTaskTD1">
                                                                    执行人:</td>
                                                                <td class="SuperviseTaskTD2">
                                                                    <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
                                                                        AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="SuperviseTaskTD3">
                                                                    审批人:</td>
                                                                <td class="SuperviseTaskTD4">
                                                                    <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
                                                                        <ContentTemplate>
                                                                            <asp:DropDownList ID="DropDownList2" runat="server" AppendDataBoundItems="True">
                                                                            </asp:DropDownList>
                                                                             <asp:HiddenField ID="HiddenField2" runat="server" />
                                                                             <asp:HiddenField ID="HiddenField3" runat="server" />
                                                                             <asp:HiddenField ID="HiddenField4" runat="server" />
                                                                        </ContentTemplate>
                                                                        <Triggers>
                                                                            <asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" />
                                                                        </Triggers>
                                                                    </asp:UpdatePanel>
                                                                </td>
                                                            </tr>





    在一个updatepanel中嵌套了两个上面的内容,这两个内容分别使用ModalPopupExtender控件弹出,然而,出现了奇怪的问题,其中 一个使用正常,另一个无论怎么样取到的下拉列表的值都是空的,弄了半天也搞不清楚,望各位大侠指点迷津!
    2009年9月14日 8:29

答案

全部回复