<%@ Page Title="PointsHistory Page" Language="C#" MasterPageFile="~/SunMaster.Master" AutoEventWireup="true" CodeBehind="PointsHistory.aspx.cs" Inherits="SUNWEB.PointsHistory" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript">
    function CheckOne(obj) {
        var grid = obj.parentNode.parentNode.parentNode;
        var inputs = grid.getElementsByTagName("input");
        for (var i = 0; i < inputs.length; i++) {
            if (inputs[i].type == "checkbox") {
                if (obj.checked && inputs[i] != obj && inputs[i].checked) {
                    inputs[i].checked = false;
                }
            }
        }
    }  
</script>

<style type="text/css">
    @media only screen and (max-width: 600px)
     {
      div 
       {
       text-align:left;        
       }
       .Labels{font-size:10px; }
               
        .overlay
            {
            position: relative;
            z-index: 700;
            height: 100%;
            width: 100%;   
            top: 0;
        
            
            background-color: Black;
            filter: alpha(opacity=60);
            opacity: 0.6;
            -moz-opacity: 0.8;
            }
 
       
  </style>

  <style type="text/css">
        .overlay
        {
            position: fixed;
            top: 0px;
            left: 0px;
            z-index: 0;
            height: 100%;
            width: 100%;
            top: 0;
            background-color: White;
            filter: alpha(opacity=60);
            opacity: 0.9;
            -moz-opacity: 1;
        }
        
        .LoadingDivCss
        {
            margin: 0;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-right: -50%;
            transform: translate(-50%, -50%);
        }
        
        .LoadingImgCss
        {
            height: 100px;
            width: 100px;
        }
    </style>

       <script type="text/javascript">
           function showProgress() {
               var updateProgress = $get("<%= UpdateProgress.ClientID %>");
               updateProgress.style.display = "block";
           }
    
    </script>

    <script type="text/javascript">
     $("[src*=plus]").live("click", function () {
         $(this).closest("tr").after("<tr><td></td><td colspan = '999'>" + $(this).next().html() + "</td></tr>")
         $(this).attr("src", "IMG/minus.gif");
     });
     $("[src*=minus]").live("click", function () {
         $(this).attr("src", "IMG/plus.gif");
         $(this).closest("tr").next().remove();
     });
    </script>
    <script type="text/javascript">
        function switchViews(obj, row) {
            var div = document.getElementById(obj);
            var img = document.getElementById('img' + obj);

            if (div.style.display == "none") {
                div.style.display = "inline";
                img.src = "IMG/minus.gif";
            } else {
                div.style.display = "none";
                img.src = "IMG/plus.gif";
            }
        }

        function CheckOne(obj) {
            var grid = obj.parentNode.parentNode.parentNode;
            var inputs = grid.getElementsByTagName("input");
            for (var i = 0; i < inputs.length; i++) {
                if (inputs[i].type == "checkbox") {
                    if (obj.checked && inputs[i] != obj && inputs[i].checked) {
                        inputs[i].checked = false;
                    }
                }
            }
        }  


    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

       <div align="left">

        <table>
        <tr>
        <td>
       <asp:Button ID="btnExcelHeader" runat="server" Text="Excel"    
       ToolTip="To Export the (MemberHistory Header) Report Click Here"  CssClass="btn btn-success active" 
       onclick="btnExcelHeader_Click"/>    <br />
       <small>MemberHistoryHeader</small> 
        
        </td>

         <td>
       <asp:Button ID="btnExcel" runat="server" Text="Excel"    
       ToolTip="To Export the  (MemberHistory Detail) Report Click Here"  CssClass="btn btn-success active" 
       onclick="btnExcel_Click"/>
        <br />
       <small>MemberHistoryDetail</small>  
      </td>
        </tr>
      <tr>
     
        </tr>
        
        </table>
      </div> 

       
       
       <br />
<asp:UpdatePanel runat="server" ID="updatepanel1" UpdateMode="Conditional">
  <ContentTemplate>
 
       <div class="section-block">
          <h5 class="section-title">
           POINTS HISTORY   REPORT
          </h5>
        </div>
        <div class="row">
                 
          <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
           <div class="card">
           <h5 class="card-header">
           SEARCH MEMBER DETAILS
           </h5>
                                                    
          <div class="card-body">
          <div class="form-row">
                                            <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                                <caption>
                                                    <label for="validationCustom03">
                                                      From 
                                                   </label>
                                                   <asp:TextBox ID="txtStartDt"   class="form-control" runat="server"  ></asp:TextBox>
                                                   <asp:CalendarExtender ID="calFirstDueDate"  Format="yyyy-MM-dd" runat="server"  TargetControlID="txtStartDt"  PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>                         
                                                     
                                                </caption>
 
                                                    
                                                
                                            </div>
                                            <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                                <label for="validationCustom03"> To
                                                 </label>

                                                 <asp:TextBox ID="txtEndDt"   class="form-control" runat="server" ></asp:TextBox>
                                                <asp:CalendarExtender ID="CalendarExtender1" Format="yyyy-MM-dd" runat="server"  TargetControlID="txtEndDt"  PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>                         
                                                
                                           

                                            </div>
                                            <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                                <label for="validationCustom03">
                                                   <asp:Label ID="lblBranchAliasName"  ForeColor="Gray" runat="server" Visible="false" Text="Branch"></asp:Label></label>
                                              <asp:DropDownList ID="cmbBranches" CssClass="custom-select"  
                                                runat="server" AutoPostBack="true" 
                                            onselectedindexchanged="cmbBranches_SelectedIndexChanged" Visible="false"></asp:DropDownList>
                                            </div>

                                             
                                        </div>

          <div class="form-row">
          <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
          <label for="validationCustom03">
          <asp:Label ID="Label2"  ForeColor="Gray" runat="server" Text="Customer Name"></asp:Label></label>
          <asp:TextBox ID="txtCustomerName"  class="form-control" runat="server"  ></asp:TextBox>
          </div>
          <%-- <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
          <caption>
          <label for="validationCustom03" >
          ItemName
          </label>
          <asp:TextBox ID="txtItemName"  class="form-control" runat="server"  ></asp:TextBox>
          </caption>
          </div>--%>
          <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
          <label for="validationCustom03">
          Customer No.</label>
           <asp:TextBox ID="txtCutomerNumber"  class="form-control" runat="server"  ></asp:TextBox>
          </div>
   
          </div>

         

        <div class="form-row">
        <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
        <asp:Button ID="btnSearch" runat="server" Text="Apply"  
        CssClass="btn btn-primary" onclick="btnSearch_Click"  />
        </div>

        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                        <div class="card">
                        <div class="card-header">
                         <div>
                        <asp:Label ID="lblSearchResult" runat="server" CssClass="Labels"> </asp:Label> 
                        </div>
               
                                
                   </div>
                   <div class="card-body">
                   <div class="table-responsive">
                   <table id="example" class="table table-striped table-bordered second" style="width:100%">
                   <tbody>
                   <caption>
                   <asp:Panel ID="Panel8" runat="server" BackColor="white" Height="100px"    ScrollBars="Auto" Width="1500px">                     
                   <asp:GridView ID="grdCustomerMaster" runat="server" AutoGenerateColumns="False"  EmptyDataRowStyle-CssClass="alert-dark"
                    Font-Size="11px" HeaderStyle-BackColor="RoyalBlue" EmptyDataText="No Record  ! " 
                    DataKeyNames="CustomerID" FooterStyle-BackColor="Green" FooterStyle-ForeColor="white" 
                    Width="920px"  AllowPaging="true" PageSize="15000000" 
                    BackColor="White" AllowSorting="true"  
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
                   
                     
                    <Columns>
                      
                        <%--<asp:TemplateField HeaderText="SNo">  
                        <ItemTemplate>
                        <%#Container.DataItemIndex+1 %>
                        </ItemTemplate>
                        </asp:TemplateField>--%>


                        <asp:TemplateField>  
                     
                           <ItemTemplate>  
                           <asp:CheckBox ID="chkSelect" runat="server" onclick="CheckOne(this)" OnCheckedChanged="CheckBox_Changed"  AutoPostBack="true" />  
                           </ItemTemplate>  
                          </asp:TemplateField>  
                        

                  <asp:TemplateField HeaderText="Cust_id"  ItemStyle-HorizontalAlign="Left" Visible="false">
                  <ItemTemplate >
                  <asp:Label ID="lblCustomerid"   runat="server" Text='<%#Eval("CustomerID") %>'></asp:Label>
                  </ItemTemplate>
                  </asp:TemplateField>
            
                  <asp:TemplateField HeaderText="Cust_No"  ItemStyle-HorizontalAlign="Left">
                  <ItemTemplate >
                  <asp:Label ID="lblCustomerNumber"   runat="server" Text='<%#Eval("CustomerNumber") %>'></asp:Label>
                  </ItemTemplate>
                  </asp:TemplateField>
            
                 <asp:TemplateField HeaderText="ID" ItemStyle-Width="80px" >
                   <ItemTemplate>
                   <asp:Label ID="lblID" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
                   </ItemTemplate>
                           
                   </asp:TemplateField>     

                  <asp:TemplateField HeaderText="Cust_Name"  ItemStyle-HorizontalAlign="Left">
                  <ItemTemplate >
                  <asp:Label ID="lblCustomerName"   runat="server" Text='<%#Eval("CustomerName") %>'></asp:Label>
                  </ItemTemplate>
                  </asp:TemplateField>

                  <asp:TemplateField HeaderText="OpenDt" ItemStyle-Width="80px" >
                   <ItemTemplate>
                   <asp:Label ID="lblOpenDate" runat="server" Text='<%#Eval("OpenDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                   </ItemTemplate>
         
                  </asp:TemplateField>    
                  
                  <asp:TemplateField HeaderText="Email"  ItemStyle-HorizontalAlign="Left">
                  <ItemTemplate >
                  <asp:Label ID="lblEmail"   runat="server" Text='<%#Eval("EmailAddress") %>'></asp:Label>
                  </ItemTemplate>
                  </asp:TemplateField>
                  
                  <asp:TemplateField HeaderText="Tel1"  ItemStyle-HorizontalAlign="Left">
                  <ItemTemplate >
                  <asp:Label ID="lblTel1"   runat="server" Text='<%#Eval("Tel1") %>'></asp:Label>
                  </ItemTemplate>
                  </asp:TemplateField>
                  
                  <asp:TemplateField HeaderText="Tel1"  ItemStyle-HorizontalAlign="Left">
                  <ItemTemplate >
                  <asp:Label ID="lblTel2"   runat="server" Text='<%#Eval("Tel2") %>'></asp:Label>
                  </ItemTemplate>
                  </asp:TemplateField>
                  
                   
                
                </Columns>
                <pagerstyle cssclass="gridview">
                </pagerstyle>
                <FooterStyle BackColor="#006699" ForeColor="White"></FooterStyle>
                <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black"></HeaderStyle>
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                     </asp:GridView>

                    </asp:Panel>                  
                    </caption>
                                          
                    </tbody>
                   
                    </table>
                     
                    </div>
                   </div>


                            
                </div>
               </div>

        <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
        <asp:Button ID="BtnGenerate" runat="server" Text="Generate Report"   
        CssClass="btn btn-primary" onclick="BtnGenerate_Click"  />
        </div>

        </div>
        </div>
        </div>
        </div>
       </div>


   
     <div>
       <h4>&nbsp;<asp:Label ID="lblGreeting" runat="server"></asp:Label></h4>
           <%--<asp:Button ID="btnPdf" runat="server" Text="PDF" 
            ToolTip="To Export  the Report Click Here"  CssClass="btn btn-secondary" 
            onclick="btnPdf_Click"/>--%>   
     </div>

     <%--Gridiview Code :  --%>


     <div class="row">
                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="card">
                        <div class="card-header">
                            <asp:Label ID="lblSearchResult2" runat="server" CssClass="Labels"></asp:Label>
                            </b> </p>
                        </div>  
                        <div class="card-body">
                            <div class="table-responsive">
                                <table id="Table1" class="table table-striped table-bordered second" style="width: 100%">
                                    <tbody>
                                        <caption>
                                            <div align="left">
                                                   <asp:GridView ID="grdPointsHead" runat="server" AutoGenerateColumns="False" Font-Size="12px" 
                                                    AllowSorting="true" EmptyDataText="No Record !" DataKeyNames="CustomerNumber" OnRowCommand="grdPointsHead_RowCommand" 
                                                    Width="800px" ShowFooter="True" BorderWidth="1px" CellPadding="3" onrowdatabound="grdPointsHead_RowDataBound">
                              
                                                    <Columns>
                                               <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <a href="javascript:switchViews('div<%# Eval("CustomerNumber") %>', 'one');">
                                                            <img id="imgdiv<%# Eval("CustomerNumber") %>" alt="Click to show/hide Details" border="0"
                                                                src="IMG/plus.gif" />
                                                        </a>
                                                    </ItemTemplate>
                                                    <AlternatingItemTemplate>
                                                        <a href="javascript:switchViews('div<%# Eval("CustomerNumber") %>', 'alt');">
                                                            <img id="imgdiv<%# Eval("CustomerNumber") %>" alt="Click to show/hide Details" border="0"
                                                                src="IMG/plus.gif" />
                                                        </a>
                                                    </AlternatingItemTemplate>
                                                </asp:TemplateField>


                                                  <asp:TemplateField HeaderText="CustomerName" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("CustomerName") %>'></asp:Label>
                                                            </ItemTemplate>
                                                              
                                                        </asp:TemplateField>
                                                     <asp:TemplateField HeaderText="CustomerNumber" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCustomerNumber" runat="server" Text='<%#Eval("CustomerNumber") %>'></asp:Label>
                                                            </ItemTemplate>
                                                              
                                                        </asp:TemplateField>
                                                       <asp:TemplateField HeaderText="OP.Bal"  ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                           <ItemTemplate>
                                                                <asp:Label ID="lblOpeningBal" runat="server" Text='<%# string.Format("{0:n2}",Eval("OPBAL")) %>'></asp:Label>
                                                            </ItemTemplate>
                                                              
                                                        </asp:TemplateField>

                                                     <asp:TemplateField HeaderText="EarnPoints"  ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                      
                                                       <HeaderTemplate>
                                                        EarnPoints<br />
                                                       &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label runat="server" ID="HEP" Text="Total" Visible="false"></asp:Label>
                                                       </HeaderTemplate>

                                                            <ItemTemplate>
                                                                <asp:Label ID="lblEarnPoints" runat="server" Text='<%# string.Format("{0:n2}",Eval("EP")) %>'></asp:Label>
                                                            </ItemTemplate>

                                                            
                                                              
                                                        </asp:TemplateField>
                                                         <asp:TemplateField HeaderText="RedeemPoint "  ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                       <HeaderTemplate>
                                                        RedeemPoints<br />
                                                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label runat="server" ID="HRDM" Text="Total1" Visible="false"></asp:Label>
                                                       </HeaderTemplate>

                                                            <ItemTemplate>
                                                                <asp:Label ID="lblRedeem" runat="server" Text='<%# string.Format("{0:n2}",Eval("RDM")) %>'></asp:Label>
                                                            </ItemTemplate>
                                                              
                                                        </asp:TemplateField>


                                                       <asp:TemplateField HeaderText="AdjustPoint"  ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">

                                                       <HeaderTemplate>
                                                         AdjustPoints<br />
                                                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label runat="server" ID="HADJ" Text="Total2" Visible="false"></asp:Label>
                                                       </HeaderTemplate>

                                                            <ItemTemplate>
                                                                <asp:Label ID="lblAdjPoint" runat="server" Text='<%# string.Format("{0:n2}",Eval("Adj")) %>'></asp:Label>
                                                            </ItemTemplate>
                                                              
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="CPoints"  ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCPoints" runat="server" Text='<%# string.Format("{0:n2}",Eval("CPoints")) %>'></asp:Label>
                                                            </ItemTemplate>
                                                              
                                                        </asp:TemplateField>
                                                          <asp:TemplateField HeaderText="CL.Bal"  ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblClobal" runat="server" Text='<%# string.Format("{0:n2}",Eval("CLOBAL")) %>'></asp:Label>
                                                            </ItemTemplate>
                                                              
                                                        </asp:TemplateField>

                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                            <tr>
                                                            <td colspan="100%" style="padding-left: 95px">
                                                                <div id="div<%# Eval("CustomerNumber") %>" style="display: none; left: 150px;">
                                                                                                                         
                                                           
                                                                    <asp:GridView ID="gvchild" runat="server" AutoGenerateColumns="false" Font-Size="12px"
                                                                        Width="550px">
                                                                        <Columns>
                                                                   
                                                                    <asp:TemplateField HeaderText="TransDate">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblTransDate" Width="85px" runat="server" Text='<%#Eval("Transdate" ,"{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ControlStyle BorderWidth="0px" />
                                                                        <HeaderStyle BorderWidth="1px" HorizontalAlign="Center" />
                                                                        <ItemStyle Width="60px" BorderWidth="1px" />
                                                                    </asp:TemplateField>
                                                                     <asp:TemplateField HeaderText="TransNo" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblTransNo" runat="server" Text='<%#Eval("TransNo") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                              
                                                                      </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="EarnPoints" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblEP" runat="server" Text='<%# string.Format("{0:n2}",Eval("EP")) %>' ></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ControlStyle BorderWidth="0px" />
                                                                        <HeaderStyle BorderWidth="1px" HorizontalAlign="Center" />
                                                                        <ItemStyle Width="60px" BorderWidth="1px" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="RedeemPoints" ItemStyle-HorizontalAlign="Center">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblRedeemPoints" runat="server" Text='<%# string.Format("{0:n2}",Eval("RDM")) %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ControlStyle BorderWidth="0px" />
                                                                        <HeaderStyle BorderWidth="1px" HorizontalAlign="Center" />
                                                                        <ItemStyle Width="60px" BorderWidth="1px" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="AdjustPoint" ItemStyle-HorizontalAlign="Center">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAdjustPoints" runat="server" Text='<%# string.Format("{0:n2}",Eval("Adj")) %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ControlStyle BorderWidth="0px" />
                                                                        <HeaderStyle BorderWidth="1px" HorizontalAlign="Center" />
                                                                        <ItemStyle Width="60px" BorderWidth="1px" />
                                                                    </asp:TemplateField>
       
                                                                        </Columns>
                                                                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                                        <RowStyle ForeColor="#000066" />
                                                                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                                                        <SortedAscendingHeaderStyle BackColor="#007DBB" />
                                                                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                                                        <SortedDescendingHeaderStyle BackColor="#00547E" />
                                                                    </asp:GridView>

                                                                  </div>
                                                              </td>
                                                            </tr>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="White" ForeColor="Black"></FooterStyle>
                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                    <RowStyle ForeColor="#000066" />
                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                                                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                                                </asp:GridView>
                                            </div>
                                        </caption>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
              <asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="updatepanel1">
           <ProgressTemplate>
            <div class="overlay">
                <%--  <div style="z-index: 1000; margin-left: 450px; margin-top: 0; opacity: 1; -moz-opacity: 1;">--%>
                <div class="LoadingDivCss">
                    <img alt="" src="IMG/Spinner.gif" class="LoadingImgCss" />
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

     </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>
