ScriptManager就不贴出来了,我在这里设定了UpdatePanel的trigger的AsyncPostBackTrigger和PostBackTrigger 作局步更新和整页更新,可是一点效果都没有?

请各位高手帮忙解决,谢谢!

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <table width="100%">
                                    <tr >
                                        <td style="width: 82px; height: 16px;">                                           
                                            <asp:Label ID="Label1" runat="server" Text="業務組別:" Width="80px" Height="13px"></asp:Label></td>
                                        <td style="width: 80px; height: 16px;">                                           
                                            <asp:DropDownList ID="ddlbsid" runat="server" OnSelectedIndexChanged="ddlbsid_SelectedIndexChanged" AutoPostBack="True">
                                            <asp:ListItem Text="全部" Value="%"></asp:ListItem>
                                            <asp:ListItem Text="業務一課" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="業務二課" Value="2"></asp:ListItem>
                                            <asp:ListItem Text="業務三課" Value="3"></asp:ListItem>
                                            <asp:ListItem Text="業務五課" Value="5"></asp:ListItem>
                                            <asp:ListItem Text="業務六課" Value="6"></asp:ListItem>
                                            <asp:ListItem Text="業務九課" Value="9"></asp:ListItem>
                                             </asp:DropDownList>
                                            </td>
                                            <td style="width: 82px; height: 16px;">
                                            <asp:Label ID="CustNO" runat="server" Text="客戶:" Width="48px" Height="14px"></asp:Label></td>
                                        <td style="width: 80px; height: 16px;">                                           
                                            <asp:DropDownList ID="ddlCust" runat="server">
                                             </asp:DropDownList>
                                            </td>
                                        <td style="width: 90px; height: 16px;">
                                            <asp:Label ID="Label9" runat="server" Text="預定交期:" Width="80px" Height="14px"></asp:Label></td>
                                        <td style="width: 100px; height: 16px">
                                            <asp:TextBox ID="sDate" runat="server" Width="80px" CssClass="TextBox" onfocus="calendar()"></asp:TextBox></td>
                                        <td style="width: 100px; height: 16px">
                                            <asp:TextBox ID="eDate" runat="server" Width="80px" CssClass="TextBox" onfocus="calendar()"></asp:TextBox>
                                            </td>                                       
                                        <td style="width: 38px;" rowspan="2">
                                            <asp:Button ID="qryDate" runat="server" OnClick="qryDate_Click" Text="查詢" /></td>
                                        <td rowspan="2" style="width: 90px">
                                            <asp:Button ID="btnDates" runat="server" Text="To Excel" OnClick="btnDates_Click" /></td>
                                        <td style="width: 90px;" rowspan="2">
                                            <asp:Button ID="btnSelect" OnClick="btnSelect_Click" runat="server" Text=" 返 回 " /></td>
                                    </tr>
                                    <tr>
                                       
                                        <td style="width: 82px; height: 16px">
                                            <asp:Label ID="Label7" runat="server" Text="訂單類型:" Width="80px" Height="11px"></asp:Label></td>
                                        <td style="width: 80px; height: 16px">
                                            <asp:DropDownList ID="ddlStatus" runat="server">
                                            <asp:ListItem Text="已確認" Value="Y" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="未確認" Value="N"></asp:ListItem>
                                            <asp:ListItem Text="全部" Value="%"></asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 23px; height: 16px">
                                            <asp:DropDownList ID="ddlOrder" runat="server">
                                                <asp:ListItem Selected="True" Value="ORDER_NO">廠內單號</asp:ListItem>
                                                <asp:ListItem Value="CUST_ORDER_NO">客戶單號</asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td style="width: 96px; height: 16px">
                                            <asp:TextBox ID="ordID" runat="server" Width="100px" OnPreRender="ordID_PreRender"></asp:TextBox></td>                                       
                                    </tr>
                                </table>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ddlbsid" EventName="SelectedIndexChanged" />
                                    <asp:PostBackTrigger ControlID="qryDate" />
                                </Triggers>
                                </asp:UpdatePanel>

posted on 2008-11-11 09:10  Wolf.Jiang  阅读(391)  评论(0)    收藏  举报