Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

hello everyone i need help...How can show updateprogress on page load while binding data on gridview...i have it under button click event and it works fine...but on pageload it doesnt work..help anyone??here is my code below..

$
0
0
<asp:ScriptManager ID="ScriptManager1" runat="server">  </asp:ScriptManager><asp:UpdatePanel ID="Up" runat="server" UpdateMode ="Conditional"><ContentTemplate ><asp:Button ID="Button1" runat="server" Text="Button" /><asp:GridView ID="GridView1"  DataKeyNames = "DISPREC_ID" runat="server" 
             AutoGenerateColumns="False"  
            BackColor="White" 
            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            style="z-index: 1; left: 37px; top: 36px;  height: 179px; width: 938px"><AlternatingRowStyle BackColor="White" /><Columns >  <asp:BoundField DataField="DISPREC_ID" HeaderText="DISPREC_ID" ReadOnly="true" 
           Visible="False" /><asp:BoundField DataField="DestinationOffice" HeaderText="Destination_Office" ReadOnly="true"   Visible="False" /><asp:BoundField DataField ="TrackingNumber" HeaderText ="Tracking_Number" ReadOnly ="true" /><asp:BoundField  DataField ="DispatchDate" HeaderText ="Dispatch_Date" ReadOnly ="true" /><asp:TemplateField HeaderText="Confirmation_" SortExpression="Confirmation_"><ItemTemplate><asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("Confirmation_") %>' AutoPostBack ="true" OnCheckedChanged ="checked_" Text='<%# If(Eval("Confirmation_").ToString().Equals("True"), "  Confirmed ", "  Not Confirmed ") %>' /></ItemTemplate></asp:TemplateField></Columns><FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /><HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /><PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center"/><RowStyle BackColor="#FFFBD6" ForeColor="#333333" /><SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /><SortedAscendingCellStyle BackColor="#FDF5AC" /><SortedAscendingHeaderStyle BackColor="#4D0000" /><SortedDescendingCellStyle BackColor="#FCF6C0" /><SortedDescendingHeaderStyle BackColor="#820000" /></asp:GridView><asp:UpdateProgress ID="UpdateProgress1"  AssociatedUpdatePanelID ="Up" runat="server" DynamicLayout ="true"><ProgressTemplate ><div id="Background"></div><div id="Progress"><asp:Image ID="Image" runat="server" ImageUrl="~/Images/ajax-loader.gif" />
  Fetching Records Please Wait...</div></ProgressTemplate></asp:UpdateProgress> </ContentTemplate><Triggers><asp:AsyncPostBackTrigger ControlID="GridView1" /></Triggers></asp:UpdatePanel><asp:Timer ID="Timer1" runat="server" Interval = "5000"></asp:Timer>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>