更新进度栏问题 [英] problem with update progressbar

查看:72
本文介绍了更新进度栏问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的页面上有脚本管理器& updatepanel
我将更新进度栏添加到该页面
但有时它可以正常工作很多次都没用
我的意思是说更新过程不起作用或目录什么都没有
那是什么问题




i have page with script manager & updatepanel
i add update progress bar to that page
but sometime it works & many times it doesn''t work
i mean the update prgress doesn''t work or dir any thing
so what is the problem




<body style="background-color: #FFFFFF">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"  />
    <a href="PopUpAllOrderApprovedDetails.aspx" target="_blank">Dir All Orders</a>
    <br />
    <asp:UpdatePanel ID="UpdatePanel21" runat="server">
        <ContentTemplate>
             <asp:GridView ID="Gv_Data" runat="server"

                    AutoGenerateColumns="False"  onrowdatabound="Gv_Data_RowDataBound"

            CellPadding="4" DataKeyNames="OrderMasterID" BackColor="White"

            BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px">
                    <PagerStyle CssClass="pager-row" BackColor="#99CCCC" ForeColor="#003399"

                                      HorizontalAlign="Left" />
                          <RowStyle CssClass="row" BackColor="White" ForeColor="#003399" />
                                  <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                                  <HeaderStyle BackColor="#003399" Font-Bold="True"

                        ForeColor="#CCCCFF" />
                          <PagerSettings PageButtonCount="7" FirstPageText="«" LastPageText="»"  />
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Button ID="Btn_Save" runat="server" onclick="Btn_Save_Click" Text="Save" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Panel CssClass="group" ID="Pnl_Orders" runat="server">
                                <table border="2" style="border: medium ridge #000000" width="100%" >
                                        <tr>
                                            <td></td>
                                            <td align="center"><asp:Label ID="Label4" runat="server" Text="Order No"

                                                    EnableViewState="False" style="font-weight: 700"/></td>
                                            <td align="center"><asp:Label ID="Label5" runat="server" Text="Order Date"

                                                    EnableViewState="False" style="font-weight: 700"/></td>
                                            <td align="center">
                                                <asp:Label ID="Label53" runat="server" EnableViewState="False"

                                                    style="font-weight: 700" Text="Company" />
                                                <td align="center">
                                                    <asp:Label ID="Label49" runat="server" EnableViewState="False"

                                                        style="font-weight: 700" Text="Bank" />
                                                    <td align="center">
                                                        <asp:Label ID="Label51" runat="server" EnableViewState="False"

                                                            style="font-weight: 700" Text="Total" />
                                                        <td align="center">
                                                            <asp:Label ID="Label52" runat="server" EnableViewState="False"

                                                                style="font-weight: 700" Text="Total Local" />
                                                            <td align="center">
                                                                <asp:Label ID="Label6" runat="server" EnableViewState="False"

                                                                    style="font-weight: 700" Text="Satatus" />
                                                                <td align="center">
                                                                    <asp:Label ID="Label56" runat="server" EnableViewState="False"

                                                                        style="font-weight: 700" Text="Comments" />
                                                                    <td align="center">
                                                                        &nbsp;</td>
                                                                </td>
                                                            </td>
                                                        </td>
                                                    </td>
                                                </td></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                  <asp:Image ID="imgCollapsible" CssClass="first" ImageUrl="~/Images/folder_collapsedall.gif" Style="margin-right: 5px;" runat="server" />
                                            </td>
                                            <td>
                                                <asp:Label ID="Lbl_OrderNo" runat="server" Text='<%# Bind("OrderNo") %>'/>
                                            </td>
                                            <td>
                                                <asp:Label ID="Lbl_OrderDate" runat="server"

                                                    Text='<%# Bind("OrderDate", "{0:d}") %>'/>
                                            </td>
                                            <td>
                                                <asp:Label ID="Lbl_CompanyName" runat="server" Text='<%# Bind("CompanyName") %>' />
                                            </td>
                                            <td>
                                                <asp:Label ID="Lbl_BankName" runat="server" ForeColor="Red"

                                                    Text='<%# Bind("BankName") %>' />
                                            </td>
                                            <td>
                                                <asp:Label ID="Lbl_OrderTotalvalue" runat="server" Text='<%# Bind("OrderTotalvalue","{0:#,##,##.00}") %>' /><asp:Label ID="Lbl_CurrencyName" runat="server" Text='<%# Bind("CurrencyName") %>' ForeColor="Red" />
                                            </td>
                                            <td>
                                                <asp:Label ID="Lbl_OrderLocalTotalValue" runat="server" Text='<%# Bind("OrderLocalTotalValue","{0:#,##,##.00}") %>' Font-Bold="True" ForeColor="Red" />
                                              <%--   <asp:Label ID="Label2" runat="server" Text='<%# Bind("OrderLocalTotalValue","{0:c}") %>' Font-Bold="True" />--%>
                                            </td>
                                            <td>
                                                <asp:RadioButtonList ID="Rbl_Status" runat="server" Enabled='<%# Bind("EnableStatus") %>'

                                                    RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="0">Wait</asp:ListItem>
                                                    <asp:ListItem Value="1">Confirm</asp:ListItem>
                                                    <asp:ListItem Value="2">Reject</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Txt_Description" runat="server" Height="124px" Text='<%# Bind("Description") %>'

                                                    TextMode="MultiLine"></asp:TextBox>
                                            </td>
                                            <td>
                                            <asp:GridView ID="Gv_Status" runat="server" AutoGenerateColumns="False"

                                    CellPadding="4"  ForeColor="#333333">
                                    <PagerStyle BackColor="#284775" CssClass="pager-row" ForeColor="White"

                                        HorizontalAlign="Center" />
                                    <RowStyle BackColor="#F7F6F3" CssClass="row" ForeColor="#333333" />
                                    <EditRowStyle BackColor="#999999" />
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <PagerSettings FirstPageText="«" LastPageText="»" PageButtonCount="7" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="#">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_Index" runat="server"

                                                    Text="<%# Container.DataItemIndex + 1 %>"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="UserFullName" HeaderText="User Name" />
                                        <asp:BoundField DataField="StatusName" HeaderText="Status" />
                                        <asp:TemplateField HeaderText="Objects" Visible="False">
                                            <ItemTemplate>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                </asp:GridView>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                <asp:Label ID="Label55" runat="server" EnableViewState="False"

                                                    style="font-weight: 700" Text="Releaser:" />
                                            </td>
                                            <td colspan="8">
                                                <asp:Label ID="Kbl_UserFullName" runat="server"

                                                    Text='<%# Bind("UserFullName") %>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                <asp:Label ID="Label48" runat="server" EnableViewState="False"

                                                    style="font-weight: 700" Text="Supplier" />
                                            </td>
                                            <td colspan="8">
                                                <asp:Label ID="Lbl_SuplierName" runat="server"

                                                    Text='<%# Bind("SupplierName") %>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                               </td>
                                            <td>
                                                <asp:Label ID="Label54" runat="server" EnableViewState="False"

                                                    style="font-weight: 700" Text="Payment:" />
                                            </td>
                                            <td colspan="8">
                                                <asp:Label ID="Lbl_PaymentMethods" runat="server"

                                                    Text='<%# Bind("PaymentMethods") %>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="10">
                                                <asp:Panel ID="Pnl_OrderDetails" runat="server"

                                                    Style="margin-left: 20px; margin-right: 20px">
                                                    <asp:GridView ID="Gv_Items" runat="server" AutoGenerateColumns="False"

                                                        CellPadding="4" ForeColor="#333333">
                                                        <EditRowStyle BackColor="#2461BF" />
                                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                        <RowStyle BackColor="#EFF3FB" />
                                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                                        <PagerSettings FirstPageText="«" LastPageText="»" PageButtonCount="7" />
                                                        <AlternatingRowStyle BackColor="White" />
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="#">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Lbl_Index0" runat="server"

                                                                        Text="<%# Container.DataItemIndex + 1 %>"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Item">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label47" runat="server" Text='<%# Bind("ItemName") %>'></asp:Label>
                                                                </ItemTemplate>
                                                                <EditItemTemplate>
                                                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ItemName") %>'></asp:TextBox>
                                                                </EditItemTemplate>
                                                                <FooterTemplate>
                                                                    <asp:Label ID="Label46" runat="server" EnableViewState="False" Text="Total:"></asp:Label>
                                                                    <asp:Label ID="Lbl_Total" runat="server"></asp:Label>
                                                                </FooterTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="UnitName" HeaderText="Unit" />
                                                            <asp:BoundField DataField="Quantity" HeaderText="Quantity" />
                                                            <asp:BoundField DataField="UnitRate" HeaderText="Rate" />
                                                            <asp:BoundField DataField="DeliveryPlaceName" HeaderText="Dest" />
                                                            <asp:BoundField DataField="EstimatedDate" DataFormatString="{0:d}"

                                                                HeaderText="ETD" />
                                                            <asp:BoundField DataField="ArrivalDate" DataFormatString="{0:d}"

                                                                HeaderText="ETA" />
                                                            <asp:BoundField DataField="Packing" HeaderText="Packing" />
                                                            <asp:TemplateField HeaderText="Net">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Lbl_NetValue" runat="server" Text='<%# Bind("NetValue") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </asp:Panel>
                                                <cc1:CollapsiblePanelExtender ID="cpe" runat="Server" AutoCollapse="False"

                                                    AutoExpand="False" CollapseControlID="Pnl_Orders" Collapsed="True"

                                                    CollapsedImage="~/Images/folder_collapsedall.gif" CollapsedSize="0"

                                                    ExpandControlID="Pnl_Orders" ExpandDirection="Vertical"

                                                    ExpandedImage="~/Images/folder_expandedall.gif" ImageControlID="imgCollapsible"

                                                    ScrollContents="false" TargetControlID="Pnl_OrderDetails" />
                                            </td>
                                        </tr>
                                    </table>





                                </asp:Panel>


                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Bank">
                            <ItemTemplate>
                                <asp:DropDownList ID="Ddl_Banks" runat="server" DataTextField="BankName"

                                    DataValueField="BankID" ondatabound="DropDownList_DataBound" Width="250px">
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Objects" Visible="False">
                            <ItemTemplate>
                                <asp:Label ID="Lbl_OrderMasterID" runat="server" Text='<%# Bind("OrderMasterID") %>'/>
                                <asp:Label ID="Lbl_EmployeeApproved" runat="server" Text='<%# Bind("EmployeeApproved") %>'/>
                                <br />
                                <asp:Label ID="Lbl_BankID" runat="server" Text='<%# Bind("BankID") %>'/>
                                <br />
                                <asp:Label ID="Lbl_CompanyID" runat="server" Text='<%# Bind("CompanyID") %>'/>
                                <asp:Label ID="Lbl_OrderStatusID" runat="server" Text='<%# Bind("OrderStatusID") %>'/>
                                <asp:Label ID="Lbl_OrderStatus" runat="server" Text='<%# Bind("OrderStatus") %>'/>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                                  <SelectedRowStyle BackColor="#009999" Font-Bold="True"

                        ForeColor="#CCFF99" />
                                  <SortedAscendingCellStyle BackColor="#EDF6F6" />
                                  <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                                  <SortedDescendingCellStyle BackColor="#D6DFDF" />
                                  <SortedDescendingHeaderStyle BackColor="#002876" />
                </asp:GridView>
    <%--   <asp:Label ID="Label2" runat="server" Text='<%# Bind("OrderLocalTotalValue","{0:c}") %>' Font-Bold="True" />--%>
        </ContentTemplate>
    </asp:UpdatePanel>

      <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel21" >
    <ProgressTemplate>
        <div id="progressBackgroundFilter"  class ="progressBackgroundFilter"></div>
        <div id="processMessage" align="center" class="processMessage">
        <asp:Label ID="lbl_wait" runat="server" Text="Wait ...."  ></asp:Label><br /><br /><asp:Image ID="imgloading" runat="server" ImageUrl="~/images/5.gif" AlternateText="Loading" />
         </div>
    </ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>

推荐答案

set property update mode as contional for updatepanel
set property update mode as contional for updatepanel


这篇关于更新进度栏问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆