<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TwoWayMap.aspx.vb" Inherits="FinIQWebApp.TwoWayMap"  MasterPageFile="~/FiniqAppMasterPage.Master"%>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" EnableViewState="true">
        <ContentTemplate>

            <style>
                #btnLoad:hover, #btnSave:hover {
                    cursor: pointer;
                }
                .lblSuccess {
                    color:green;
                }
            </style>
            <script>

                Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
                function BeginRequestHandler(sender, args) {
                    var oControl = args.get_postBackElement(); oControl.disabled = true;
                }

                function AllowAlphaNumericOnly(e) {

                    var keycode;
                    if (window.event)
                        keycode = window.event.keyCode;
                    else if (event)
                        keycode = event.keyCode;
                    else if (e)
                        keycode = e.which;
                    else return true;

                    if ((keycode > 47 && keycode <= 57) || (keycode > 64 && keycode < 91) || (keycode > 96 && keycode < 123)) {

                        return true;
                    }

                    else { return false; }

                }
                function AllowNumericOnly(evt) {
                    var charCode = (evt.which) ? evt.which : event.keyCode
                    if (charCode > 31 && (charCode < 48 || charCode > 57))
                        return false;

                    return true;
                }

                function AllowNumericSpecialcharOnly(evt) {

                    var charCode = (evt.which) ? evt.which : event.keyCode
                    if (charCode > 31 && (charCode < 48 || charCode > 58))
                        return false;

                    return true;
                }

                function isEnterKey(evt) {

                    var charCode = (evt.which) ? evt.which : evt.keyCode;
                    if ($("[id*='hdnButtonClick']")[0].value == "I" || $("[id*='hdnButtonClick']")[0].value == "U") {

                        return false;
                    }
                    if (charCode == 13) {
                        if (parseInt($("[id*='txtRowsPerPage']")[0].value) == 0) {
                            $($(".lblError")[0]).text("Please select valid rows per page value")
                        }
                        document.getElementById("<%=hdn_RowsPerPagebtn.ClientID%>").click();
                    }
                    return true;
                }


            </script>
            <asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
                DisplayAfter="0">
                <ProgressTemplate>
                    <div class="divLoading">
                        <img alt="Loading" src="../App_Resources/loading.gif" style="height: 20px; width: 80px" /><span class="lbl">Loading...&nbsp;&nbsp;</span>
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <table>
                
                <tr>
                    <td>
                        <asp:Label ID="lblError" CssClass="lblError" runat="server" Style="margin-bottom: 20px !important" />
                        <asp:Label ID="lblSuccess" CssClass="lblError" runat="server" Style="margin-bottom: 20px !important" />
                    </td>
                </tr>
            </table>
            <table style="width: 100%;margin-top:5px;">
                <tr>
                    <td>
                   <%--     <asp:Panel ID="pnlOne" runat="server">--%>
                            <table>

                                <tr>
                                    <td>
                                        <asp:Label ID="lblBuyerEntity" runat="server" Text="Buyer Entity: "  CssClass="lbl"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlBuyerEntity" runat="server" AutoPostBack ="True" CssClass="ddl" Width="300px"></asp:DropDownList>
                                    </td>

                                    <td></td>
                                    <td>
                                        <asp:Button ID="btnLoad" Text="Load" runat="server" CssClass="btn" Width="100px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Button ID="btnExport" Text="Export" runat="server" CssClass="btn" Width="100px"/>
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblRowsPerPage" runat="server" Text="Row(s) per page: "  Csscalss="lbl" Width ="100px" Autopostback="true"/>

                                    </td>
                                    <td>
                                        <asp:Textbox ID="txtRowsPerPage"  autopostback="true"  runat="server"  CssClass="txt" Width ="40px" OnTextChanged="txtRowsPerPage_TextChanged" onkeydown="return isEnterKey(event);" OnKeyPress="return AllowNumericOnly(this);" oncopy="return false" onpaste="return false" oncut="return false"/> 
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td>
                                        <asp:Label ID="lblProductName" runat="server" Text="Product Variation: " CssClass="lbl" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlProductName" AutoPostBack ="True" runat="server"  CssClass="ddl" Width="300px"/>
                                    </td>

                                    
                                     <td></td>
                                    <td>
                                        <asp:Button ID="btnAdd" Text="Add" runat="server" CssClass="btn" Width="100px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:Button ID="btnImport" Text="Import" runat="server" CssClass="btn" Width="100px" AutoPostBack="true"/>
                                        <asp:FileUpload ID="fileuploadExcel" type="file" size="52" name="clientfile" runat="server" Width="246px" /><%--Height="26px"--%>
                                    </td>

                                    <%--<td>
                                        <asp:Button ID="btnDelete" Text="Delete" runat="server" Visible="false" enabled="false" CssClass="btn" Width="100px" OnClientClick="return confirm('Are you sure you want delete?')" />
                                    </td>
                                    --%>
                                    
                                    <td></td>
                                    <td>
                                        <asp:Label ID="lblTotalRecords" runat="server" Text="Total Record(s): "  Csscalss="lbl" Width ="100px" Autopostback="true"/>

                                    </td>
                                    <td>
                                        <asp:Label ID="lblRecordCount" runat="server" Text="" Csscalss="txt" Width="50px" AutoPostBack="true" />
                                    </td>
                                    <td class="paddingRight">
                                        <input type="hidden" id="Hidden1" runat="server" />
                                        <asp:Button ID="hdn_RowsPerPagebtn" Text="" Style="display: none;" runat="server" />
                                    </td>
                                </tr>
                              
                              
                             <tr>
                                    <td>
                                        <asp:Label ID="lblPriceProvider" runat="server" Text="Issuer Entity: " CssClass="lbl"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlPriceProvider" runat="server" AutoPostBack ="True" CssClass="ddl" Width="300px" />
                                    </td>
                                    <td></td>
                                     <td>
                                        <asp:Button ID="btnSave" Text="Save" runat="server" CssClass="btn" Width="100px" AutoPostBack="true"/>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDelete" Text="Delete" runat="server" Visible="false" enabled="false" CssClass="btn" Width="100px" OnClientClick="return confirm('Are you sure you want delete?')" />
                                    </td>
                                    
                                </tr>
                            </table>
                    <%--    </asp:Panel>--%>
                    </td>
                </tr>
               
                <tr>
                    <td>
                        <asp:Panel ID="pnlTwo" runat="server" Visible="true">
                            <table style="width: 100%; " >
                                <tr>
                                    <td>
                                        <asp:GridView ID="grdTwoWayMap"  runat="server" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="None" BorderWidth="0px" CellPadding="3" PagerStyle-Height="32px"
                                            AllowPaging="true" CssClass="Grid"  ShowHeaderWhenEmpty="true" RowHeadersWidthSizeMode="DisableResizing;" SelectedRowStyle-Wrap="true" HeaderStyle-CssClass="GridHeaderTitle">
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                             <PagerStyle CssClass="GridPager" />

                                            <EmptyDataTemplate>
                                                <asp:Label ID="lblqueuedatagrid" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>

                                            <Columns>


                                                <%--<asp:TemplateField>
                                                    <ItemStyle Width="30px" />
                                                    <HeaderStyle Width="30px" />
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkBox" runat="server" enabled="false" visible="false" AutoPostBack="false"></asp:CheckBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>

                                              <%--  <asp:TemplateField HeaderStyle-Wrap="True" Visible="true">
                                                    <ItemStyle HorizontalAlign="center"/>
                                                    <HeaderStyle />
                                                    <EditItemTemplate>
                                                        <asp:LinkButton ID="btnUpdateNew" runat="server" CommandName="Update" Text="Update" HorizontalAlign="left" Width="50px" />
                                                        &nbsp;
                                                        <asp:LinkButton ID="btnCancelNew" runat="server" CommandName="Cancel" Text="Cancel" HorizontalAlign="right" Width="50px"/>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="btnEditNew" HorizontalAlign="center" runat="server" CommandName="Edit" Text="Edit" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                <asp:TemplateField HeaderText="Actions" HeaderStyle-Wrap="True" Visible="true">
                                                    <ItemStyle HorizontalAlign="center" Width="120px"/>
                                                    <HeaderStyle Width="120px"/>
                                                    <EditItemTemplate>
                                                        <asp:LinkButton ID="btnUpdateNew" runat="server" CommandName="Update" Text="Update" HorizontalAlign="left" CssClass="display: inline-block;" />
                                                        
                                                <asp:LinkButton ID="btnCancelNew" runat="server" CommandName="Cancel" Text="Cancel" HorizontalAlign="right" CssClass="display: inline-block;" />
                                                    </EditItemTemplate>
                                                    <ItemTemplate >
                                                        <asp:LinkButton ID="btnEditNew" Width="120px" HorizontalAlign="center" runat="server" CommandName="Edit" Text="Edit" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                  
                                                <asp:TemplateField HeaderText="ID" Visible="false">
                                                    <HeaderStyle CssClass="gridColSummary" Width="25px" />
                                                    <ItemStyle HorizontalAlign="Right" CssClass="gridColSummary" Width="25px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.ID").ToString)%>'/>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                               
                                                <asp:TemplateField HeaderText="Buyer Entity">
                                                    <HeaderStyle CssClass="gridColSummary" Width="150px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="150px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblBuyerEntity" Width="150px" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Entity_Name").ToString)%>' runat="server" Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList runat="server" ID="ddlgrd_BuyerEntity" Width="150px" CssClass="txt" Style="padding: 5px;" /> 
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Product Variation" Visible="true">
                                                    <HeaderStyle CssClass="gridColSummary" Width="200px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="200px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblProduct" Width="200px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Product").ToString)%>' Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList runat="server" ID="ddlgrd_Product" Width="200px" CssClass="txt" Style="padding: 5px;" /> 
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Product" Visible="false">
                                                    <HeaderStyle CssClass="gridColSummary" Width="200px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="200px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblProduct_Code" Width="200px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Product_ID").ToString)%>' Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                 <asp:TemplateField HeaderText="Issuer Entity">
                                                    <HeaderStyle CssClass="gridColSummary" Width="100px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="100px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPriceProvider" CssClass="lbl" Width="100px" runat="server" Style="padding: 5px;" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Price_Provider").ToString)%>'/>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList runat="server" ID="ddlgrd_PriceProvider" Width="100px" CssClass="txt" Style="padding: 5px;" /> 
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Buyer Entity ID" Visible="False">
                                                    <HeaderStyle CssClass="gridColSummary" Width="30px" />
                                                    <ItemStyle HorizontalAlign="Right" CssClass="gridColSummary" Width="30px"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblBuyerEntityID" Width="30px" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Buyer_Entity_ID").ToString)%>' runat="server" Style="padding: 5px;"  />
                                                    </ItemTemplate>
                                                    <%--<EditItemTemplate>
                                                        <asp:TextBox ID="txtBuyerEntityID" Width="30px" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Buyer_Entity_ID").ToString)%>' runat="server" Style="padding: 5px;"  />
                                                    </EditItemTemplate>--%>
                                                </asp:TemplateField>

                                               

                                                <asp:TemplateField HeaderText="Issuer Entity ID" Visible="false">
                                                    <HeaderStyle CssClass="gridColSummary" Width="30px" />
                                                    <ItemStyle HorizontalAlign="Right"  CssClass="gridColSummary" Width="30px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblIssuerEntityID" Width="30px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Issuer_Entity_ID").ToString)%>' Style="padding: 5px;"/>
                                                    </ItemTemplate>
                                                    
                                                </asp:TemplateField>
                                                
                                                <asp:TemplateField HeaderText="Buyer Willing Y/N">
                                                    <HeaderStyle CssClass="gridColSummary" Width="60px" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="gridColSummary" Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblBuyerYN" Width="60px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Buyer_Willing_YN").ToString)%>' Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlBuyerYN" CssClass="ddl"  runat="server" Style="padding: 5px;"  Width="60px">
                                                                <asp:ListItem Text="YES" Value="YES"/>
                                                                <asp:ListItem Text="NO" Value ="NO"/>
                                                        </asp:DropDownList>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                

                                                <asp:TemplateField HeaderText="Issuer Willing Y/N">
                                                    <HeaderStyle CssClass="gridColSummary" Width="60px" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="gridColSummary" Width="60px"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblIssuerYN" Width="60px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Issuer_Willing_YN").ToString)%>' Style="padding: 5px;"/>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList  ID="ddlIssuerYN" CssClass="ddl"  runat="server" Style="padding: 5px;"  Width="60px">
                                                                <asp:ListItem Text="YES" Value="YES"/>
                                                                <asp:ListItem Text="NO" Value ="NO"/>
                                                            </asp:DropDownList>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                

                                                

                                                <asp:TemplateField HeaderText="Start Time" Visible="false">
                                                    <HeaderStyle CssClass="gridColSummary" Width="80px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="80px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStartTime" Width="80px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Start_Time").ToString())%>' Style="padding: 5px;"/>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtStartTime" Width="80px"  runat="server" OnKeyPress="return AllowNumericSpecialcharOnly(event);" Text="00:00:00" Style="padding: 5px;"/>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="End Time" Visible="false">
                                                    <HeaderStyle CssClass="gridColSummary" Width="80px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="80px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="dtEndTime" Width="80px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.End_Time").ToString)%>' Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtEndTime" Width="80px"  runat="server" OnKeyPress="return AllowNumericSpecialcharOnly(event);" Text="23:59:59" Style="padding: 5px;" />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Window Y/N" Visible="false">
                                                    <HeaderStyle CssClass="gridColSummary" Width="60px" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="gridColSummary" Width="60px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblWindowYN" Width="60px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Window_YN").ToString)%>' Style="padding: 5px;"/>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlWindowYN" CssClass="ddl"  runat="server" Style="padding: 5px;"  Width="60px">
                                                                <asp:ListItem Text="YES" Value="YES"/>
                                                                <asp:ListItem Text="NO" Value ="NO"/>
                                                        </asp:DropDownList>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Send RFQ To CP" Visible="true">
                                                    <HeaderStyle CssClass="gridColSummary" Width="60px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="60px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSendRFQ" Width="60px"  runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Send_Rfq_To_CP").ToString)%>' Style="padding: 5px;"/>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlSendRFQ" Width="60px" runat="server" Style="padding: 5px;">
                                                            <asp:ListItem Text="NO" Value="NO"/>
                                                            <asp:ListItem Text="YES" Value="YES"/>
                                                        </asp:DropDownList>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Mode Of Communication" Visible="true">
                                                    <HeaderStyle CssClass="gridColSummary" Width="80px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="80px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblModeOfCommunication" Width="80px" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Mode_Of_Communication").ToString)%>' runat="server" Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlModeOfCommunication" Width="80px"  runat="server" Style="padding: 5px;">
                                                            <asp:ListItem Text="Email" Value="Email" />
                                                            <asp:ListItem Text="FIX" Value="FIX" />
                                                        </asp:DropDownList>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Priority" Visible="true">
                                                    <HeaderStyle CssClass="gridColSummary" Width="60px" />
                                                    <ItemStyle HorizontalAlign="left" CssClass="gridColSummary" Width="60px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPriority" Width="60px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Priority").ToString)%>' Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtPriority" Width="60px" runat="server" OnKeyPress="return AllowNumericOnly(event);" Text="Default" Style="padding: 5px;"  />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Updated By" Visible="true">
                                                    <HeaderStyle CssClass="gridColSummary" Width="80px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="80px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUpdatedBy" Width="80px"  runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Updated_By").ToString)%>' Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <%--<EditItemTemplate>
                                                        <asp:TextBox ID="txtUpdatedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Updated_By").ToString)%>' Style="padding: 5px;" />
                                                    </EditItemTemplate>--%>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Updated At" Visible="true">
                                                    <HeaderStyle CssClass="gridColSummary" Width="160px" />
                                                    <ItemStyle CssClass="gridColSummary" Width="160px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUpdatedAt" Width="160px"  runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Updated_At", "{0:dd-MMM-yyyy hh:mm:ss tt}").ToString)%>' Style="padding: 5px;" />
                                                    </ItemTemplate>
                                                    <%--<EditItemTemplate>
                                                        <asp:TextBox ID="txtUpdatedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Updated_At").ToString)%>' Style="padding: 5px;" />
                                                    </EditItemTemplate>--%>
                                                </asp:TemplateField>

                                            </Columns>
                                        </asp:GridView>
                                      
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input id="hdnButtonClick" runat="server" type="hidden" />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>

            </table>
          
        </ContentTemplate>
       
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExport" />
            <asp:PostBackTrigger ControlID="btnImport" />           
        </Triggers>
    </asp:UpdatePanel>
     
</asp:Content>