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

<asp:Content ID="cont" ContentPlaceHolderID="MainContent" runat="server">
  
  <%--  FINGUI-99|| Header Freezing changes by TanmayJ || 23-Nov-2021 --%>
            <script src="../FinIQJS/FreezeGrid.js"></script>
            <link href="../FinIQJS/FreezeGrid.css" rel="stylesheet" type="text/css"/>

              <style type="text/css">
                      .GridItem{
               Cursor : pointer 
            }
                      .twentyFive {
    min-width: 25px;
    max-width: 25px;
}

/*Max-Min Changed by Tanmay Joshi || Jira ID 99 || 2-Nov-2021 */
.thirtyFive {
    min-width: 35px;
    max-width: 100px;
}
.fortyFive {
    min-width: 35px;
    max-width: 35px;
}
.AssetCode {
    min-width: 95px;
    max-width: 300px;
}

.AssetLongName {
    min-width: 500px;
    max-width: 250px;
}
 .wrapword {
            word-wrap: break-word !important;
           }
 .Amt {
            min-width: 75px;
            max-width: 75px;
        }
 .grid{
        width:fit-content !important;
 }
                  </style>

             <script type = "text/javascript">
                 function Confirm() {
                     confirm_value = document.createElement("INPUT");
                     confirm_value.type = "hidden";
                     confirm_value.name = "confirm_value";
                     if (confirm("Are you sure you want to delete selected records?")) {
                         confirm_value.value = "Yes";
                     } else {
                         confirm_value.value = "No";
                     }
                     document.forms[0].appendChild(confirm_value);
                 }

                 if (window.captureEvents) {
                   
                            window.captureEvents(Event.KeyUp);
                         window.onkeyup = executeCode;
                          }
                         else if (window.attachEvent) {
                         document.attachEvent('onkeyup', executeCode);
                         }

                 function executeCode(evt) {
                     if (evt == null) {
                        evt = window.event;
                     }
                      var theKey = parseInt(evt.keyCode, 10);

                  switch (theKey) {
                    
                      case 121:  // F10
                    document.getElementById("<%=btnSave.ClientID%>").click();
                       break;
                          
                       case 119: //f8
                         document.getElementById("<%=btnNew.ClientID%>").click();
                       break;


                       }
                      evt.returnValue = false;
                    return false;
                 }


                 function AllowNumericOnly(evt) {

                     if (evt.charCode > 31 && (evt.charCode < 48 || evt.charCode > 57)) {
                         alert("Allow Only Numbers");
                         
                         return false;
                     }
                 }

    </script>

      <asp:UpdatePanel ID ="UpdatePanelCP" runat="server">
        <ContentTemplate >

  
            <table style ="padding-left :5px;">
                 <tr>
                    <td class="Label">
					<%--AshwiniP on 30Aug2021 RHBSIIN-549 --%>
                        <asp:Label ID="lblError" runat="server"  CssClass="lblError"></asp:Label>
                        <asp:Label ID="lblInfo" runat="server"  CssClass="lblInfo"></asp:Label>
                        <asp:Label ID="lblsuccess" runat="server" Text="" CssClass="lblsuccess"></asp:Label>
                    </td>
                </tr>
            </table>
            <table style ="padding-left:5px;">
                
                <tr>

                    <td style ="width :75px">
                        <asp:Label ID="lblShortName" runat="server" CssClass="lbl">Short Name</asp:Label>

                    </td>

                    <td style="width: 200px">
                      <asp:TextBox ID="txtShortame" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                    </td>

                    <td style ="width :109px">
                         <asp:Label ID="lblCurrency" runat="server" CssClass="lbl">Currency</asp:Label>
                    </td>
                    <td style ="width :202px">
                         <asp:DropDownList ID="ddlCurrency" runat="server" CssClass="ddl" Width ="173px" AutoPostBack="true">
                        </asp:DropDownList>
                    </td>


                     <td style ="width :75px">
                         <asp:Label ID="lblActiveYN" runat="server" CssClass="lbl">Active Y/N </asp:Label>
                       </td>
                       <td style ="width :250px">
                        <asp:DropDownList ID="ddlActiveYN" runat="server" CssClass="ddl" Width ="173px" AutoPostBack="true">
                            <asp:ListItem >Y</asp:ListItem>
                            <asp:ListItem >N</asp:ListItem>
                        </asp:DropDownList>
                       </td>

                   
                      <td>
                        <asp:Button ID="btnNew" Text ="New (F8)" runat="server" Width ="77px" CssClass ="btn" />
                    </td>

                           <td>
                          <asp:Button ID="btnEdit" Text ="Edit" runat="server" Width ="77px" CssClass="btn"/>
                      </td>
                     
                       <td >
                          <asp:Button ID="btnCancel" Text ="Cancel" runat="server" Width ="77px" CssClass="btn"/>
                      </td>
                        <%-- Start || Added By Tanmay Joshi || JIRA ID 99 || Date 22-Nov-2021--%>
                      <td >
                       <asp:Label ID="lblRecords" runat="server" Text="Total Record(s): " Style="margin-left:30px"  CssClass="lbl" ></asp:Label>
                       <asp:Label ID="lblTotalRecords" runat="server" Text="" CssClass="lbl"></asp:Label>
                      </td>
                        <%-- End || Added By Tanmay Joshi || JIRA ID 99 || Date 22-Nov-2021--%>

                  </tr>
                  <tr>
                       <td>
                              <asp:Label ID="lblLongName" runat="server" CssClass="lbl">Long Name</asp:Label>
                       </td>
                       <td>
                         <asp:TextBox ID="txtLongName" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                       </td>
                       <td>
                         <asp:Label ID="lblTransactionFee" runat="server" CssClass="lbl">Transaction Fee</asp:Label>
                       </td>
                       <td>
                        <asp:TextBox ID="txtTranctionFee" runat="server"  Width="173px" onkeypress="return AllowNumericOnly(event)"  CssClass="txt"> </asp:TextBox> 
                       </td>

                        <td style ="width :100px">
                           <asp:Label ID="lblSettlementDays" runat="server" CssClass="lbl">Settlement Days</asp:Label>
                    </td>
                    <td style="width: 200px">
                                <asp:TextBox ID="txtSettlementDays" runat="server"  Width="173px" onkeypress="return AllowNumericOnly(event)" CssClass="txt"> </asp:TextBox> 
                    </td>
                        <%-- <td style ="width :100PX">

                    </td>
                       <td style ="width :200PX">

                       </td>
                      --%>
                        

                          <td>
                          <asp:Button ID="btnSave" Text ="Save (F10)" runat="server" Width ="77px" CssClass="btn"/>
                      </td>
                      
                       <td>
                          <asp:Button ID="btnDelete" Text ="Delete" runat="server" Width ="77px" CssClass="btn"     OnClientClick="return confirm('Are you sure you want to delete selected records?');" />
                      </td>
                       <td>
                          <Style="display:none;"  Width ="77px"/>
                      </td>
                      
                        <%-- Start || Added By Tanmay Joshi || JIRA ID 99 || Date 22-Nov-2021--%>

                      <td>
                             <asp:Label ID="lblRecordsperpage" runat="server" Style="margin-left:30px" Text="Record(s) Per Page   " CssClass="lbl"></asp:Label>
                                      <asp:TextBox ID="txtRowperpage" runat="server" CssClass="txt" Width="32px" OnTextChanged="txtRowperpage_TextChanged" MaxLength="3" AutoPostBack="true" onkeydown="EnterKeyEventRowPerPage(event)"></asp:TextBox>
                      </td>
                        <%-- End || Added By Tanmay Joshi || JIRA ID 99 || Date 22-Nov-2021--%>

                      <%--  <td>
                         <asp:Label ID="lblMisc4" runat="server" CssClass="lbl">Misc 4</asp:Label>
                       </td>
                       <td style="width: 200px">
                        <asp:TextBox ID="txtMisc4" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                       </td>--%>

                    
                  </tr>
                
                   <tr>

                          <td style ="width :100px">
                           <asp:Label ID="lblAssetExtension" runat="server" CssClass="lbl" Visible ="false">Asset Extension</asp:Label>
                       </td>
                       <td style="width: 200px">
                                  <asp:TextBox ID="txtAssetExtension" runat="server"  Width="173px" Visible ="false"   CssClass="txt"> </asp:TextBox> 
                       </td>

                     

                    <td style ="width :100PX">

                    </td>
                       <td style ="width :200PX">

                       </td>
                    
                   
                       <td>
                              <asp:Label ID="lblDocType" runat="server" CssClass="lbl" Visible ="false" >Doc Type</asp:Label>
                       </td>
                       <td>
                       <asp:DropDownList ID="ddlDocType" runat="server" CssClass="ddl" Width ="173px" Visible ="false"  AutoPostBack="true">
                        </asp:DropDownList>
                       </td>

                     <%-- <td>
                           <asp:Label ID="lblMisc5" runat="server" CssClass="lbl">Misc 5</asp:Label>
                      </td>
                       <td style="width: 200px">
                               <asp:TextBox ID="txtMisc5" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                       </td>--%>

                      
                  </tr>

                 <tr>
                       <%--<td>
                            <asp:Label ID="lblMisc1" runat="server" CssClass="lbl">Misc 1</asp:Label>
                       </td>
                       <td>
                             <asp:TextBox ID="txtMisc1" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                       </td>--%>

                       <%--<td>
                               <asp:Label ID="lblProductLineCode" runat="server" CssClass="lbl">Product Line Code </asp:Label>
                       </td>
                       <td>
                             <asp:TextBox ID="txtProductLineCode" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                       </td>--%>
                     <td>

                     </td>
                     <td style="width: 200px">

                     </td>
                     
                      
                  </tr>

                  <tr>
                      <%--  <td>
                               <asp:Label ID="lblMisc2" runat="server" CssClass="lbl">Misc 2</asp:Label>
                       </td>
                       <td>
                             <asp:TextBox ID="txtMisc2" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                       </td>

                          <td>
                               <asp:Label ID="lblMisc3" runat="server" CssClass="lbl">Misc 3</asp:Label>
                       </td>
                       <td>
                             <asp:TextBox ID="txtMisc3" runat="server"  Width="173px"  CssClass="txt"> </asp:TextBox> 
                       </td>--%>
                      <td>

                      </td>
                 
                     
                      
                      </tr>

                 <tr >
                    <td >
                        <input id="saveScrollPos" type="hidden" name="saveScrollPos" runat="server">
                        <asp:TextBox ID="txtFlag" runat="server" CssClass="txt" Visible="False"></asp:TextBox><asp:TextBox
                            ID="hdn" runat="server" Width="24px" Visible="False"></asp:TextBox><input id="hdnButtonValue"
                                style="width: 56px; height: 22px" type="hidden" size="4" runat="server"><input id="hdnHolidayID"
                                    style="width: 48px; height: 22px" type="hidden" size="2" runat="server">

                         </td>
                     </tr>
             
               
              
   <asp:TextBox ID="txt_sortorder" runat="server" Visible="false">desc</asp:TextBox>
                  
                
            </table>

            <table style ="padding-left :5px;">
               
                
                                 
                 
                <tr>
                    <td style ="height :10px">

                    </td>

                </tr>
                   <asp:GridView ID="FnqDgNEx" runat="server" CssClass="Grid frozenGrid" AutoGenerateColumns="false" 
                                    AllowPaging="True" ShowHeaderWhenEmpty="true" EmptyDataText="No data found"  
                                    AllowSorting="True"   BorderWidth="0" style="margin-left:10px;">
                                 <AlternatingRowStyle CssClass="GridItem"></AlternatingRowStyle> 
                                  <RowStyle CssClass="GridItem" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />
                       <Columns >



         
                           <%--  <asp:TemplateField>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <FooterStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="btnDelete" runat="server" CommandName="Delete" Text="Delete" CssClass="link" OnClientClick="return confirm('Do you want to delete this record?');" ToolTip="Delete Record" />
                                                        &nbsp;&nbsp;
                                        <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" Text="Edit" CssClass="link" />
                                                    </ItemTemplate>


                                                    <EditItemTemplate>
                                                        <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" Text="Update" CssClass="link" />
                                                        &nbsp;&nbsp;
                                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="Cancel" Text="Cancel" CssClass="link" />
                                                    </EditItemTemplate>

                             <FooterTemplate>
                                 <asp:LinkButton ID="btnInsert" runat="server" CommandName="Add" Text="Add" Width="90" ValidationGroup="Insert" />
                             </FooterTemplate>


                                                </asp:TemplateField>--%>

                      

                           <asp:TemplateField >
                               <ItemTemplate >
                                  
                                      
                                   <asp:CheckBox ID ="chkRow" runat ="server" OnCheckedChanged ="chkRow_CheckedChanged" AutoPostBack="true"  />
                                      
                               </ItemTemplate>
                           </asp:TemplateField>

                     

                            <asp:TemplateField  HeaderText ="Exchange Name" SortExpression ="Exchange_Name" ItemStyle-CssClass="AssetCode wrapword" HeaderStyle-CssClass="AssetCode wrapword">
                                      <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                   <ItemTemplate  >
                                      <asp:Label ID="lblExchangeName" runat="server"  CssClass="AssetCode" Text='<%# Eval("Exchange_Name")%>' Visible="true" ></asp:Label>

                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtExchangeName" Text='<%# Eval("Exchange_Name")%>' runat="server" Visible="true"  CssClass ="txt AssetCode" MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrExchangeName" runat="server" Visible="true" CssClass ="txt AssetCode" MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>

                            </asp:TemplateField>
                          <%-- Width Changed by Tanmay Joshi || Jira ID 99 || 2-Nov-2021--%>
                           <asp:TemplateField HeaderText ="Long Name" SortExpression="Long_Name" ItemStyle-CssClass="AssetCode wrapword" HeaderStyle-CssClass="AssetCode wrapword">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"  />
                                                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblLongName" runat="server"  Text='<%# Eval("Long_Name")%>' Visible="true" CssClass="AssetCode" Width="250px"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtLongName" Text='<%# Eval("Long_Name")%>' runat="server" Visible="true"  CssClass ="txt AssetCode" MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrLongName" runat="server" Visible="true" CssClass ="txt AssetCode" MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>
                           

                            <asp:TemplateField HeaderText ="Ccy" SortExpression ="Ccy" ItemStyle-CssClass="thirtyFive" HeaderStyle-CssClass="thirtyFive">
                              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ></HeaderStyle>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"   />
                                  <ItemTemplate >
                                      <asp:Label ID="lblCcy" runat="server" Text='<%# Eval("Ccy")%>' CssClass ="thirtyFive" Visible="true" Width ="70px"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtCcy" Text='<%# Eval("Ccy")%>' runat="server" CssClass ="thirtyFive" Visible="true" MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrCcy" runat="server" Visible="true"  CssClass ="thirtyFive" MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>
                           

                             <asp:TemplateField HeaderText ="Settlement Days"  SortExpression ="SettlementDays" ItemStyle-CssClass="Amt wrapword" HeaderStyle-CssClass="Amt wrapword">
                               <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" ></HeaderStyle>
                                        <ItemStyle HorizontalAlign="right" VerticalAlign="Middle"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblSettlementDays" runat="server"  Text='<%# Eval("SettlementDays")%>' Visible="true" CssClass ="Amt"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtSettlementDays" Text='<%# Eval("SettlementDays")%>' runat="server" Visible="true" CssClass ="Amt"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrSettlementDays" runat="server" Visible="true"  CssClass ="Amt" MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>
                           
                           
                             <asp:TemplateField HeaderText ="Fee" SortExpression ="TransactionFee" ItemStyle-CssClass="Amt" HeaderStyle-CssClass="Amt wrapword">
                               <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"  />
                                                                                <ItemStyle HorizontalAlign="right" VerticalAlign="Middle" />
                                  <ItemTemplate >
                                      <asp:Label ID="lblFee" runat="server"  Text='<%# Eval("TransactionFee")%>' Visible="true" CssClass ="Amt"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtFee" Text='<%# Eval("TransactionFee")%>' runat="server" Visible="true" CssClass ="Amt"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrFee" runat="server" Visible="true" CssClass ="Amt"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>
                            
                           

                              <asp:TemplateField HeaderText ="Template Id" SortExpression ="Template_Id"  Visible ="false">
                               <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true" Width ="44px" />
                                  <ItemTemplate >
                                      <asp:Label ID="lblDocType" runat="server"  Text='<%# Eval("Template_Id")%>' Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtDocType" Text='<%# Eval("Template_Id")%>' runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrDocType" runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>

                              <asp:TemplateField HeaderText ="Asset Ext."  SortExpression ="Asset_Extension" Visible ="false" >
                                <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblAssetExtension" runat="server"  Text='<%# Eval("Asset_Extension")%>' Width ="70px" Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtAssetExtension" Text='<%# Eval("Asset_Extension")%>' runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrAssetExtension" runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>


                           <asp:TemplateField HeaderText="Active Y/N" SortExpression="IsActiveYN" ItemStyle-CssClass="thirtyFive" HeaderStyle-CssClass="thirtyFive">
                                 <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"  Width="60px"  />
                               <ItemTemplate>
                                   <asp:Label ID="lblActiveYN" runat="server" Text='<%# Eval("IsActiveYN")%>' CssClass ="thirtyFive" Visible="true"></asp:Label>
                               </ItemTemplate>

                               <EditItemTemplate>
                                   <asp:TextBox ID="txtActiveYN" Text='<%# Eval("IsActiveYN")%>' runat="server" CssClass ="thirtyFive" Visible="true" MaxLength="500"></asp:TextBox>
                               </EditItemTemplate>

                               <FooterTemplate>
                                   <asp:TextBox ID="txtFtrActiveYN" runat="server" Visible="true" CssClass ="thirtyFive" MaxLength="500"></asp:TextBox>
                               </FooterTemplate>
                           </asp:TemplateField>




                        <%--   <asp:TemplateField HeaderText ="Product Line Code" SortExpression ="Product_Line_Code" >
                                <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblProductLineCode" runat="server"  Text='<%# Eval("Product_Line_Code")%>' Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtProductLineCode" Text='<%# Eval("Product_Line_Code")%>' runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrProductLineCode" runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>--%>

                             <%--  <asp:TemplateField HeaderText ="Misc 2" SortExpression ="Misc1">
                                <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblMisc1" runat="server"  Text='<%# Eval("Misc1")%>' Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtMisc1" Text='<%# Eval("Misc1")%>' runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrMisc1" runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>--%>

                          <%--        <asp:TemplateField  HeaderText ="Misc 2" SortExpression ="Misc2" >
                                <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblMisc2" runat="server"  Text='<%# Eval("Misc2")%>' Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtMisc2" Text='<%# Eval("Misc2")%>' runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrMisc2" runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>--%>

                            <%--    <asp:TemplateField HeaderText ="Misc 3" SortExpression ="Misc3">
                                  <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblMisc3" runat="server" Text='<%# Eval("Misc3")%>' Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtMisc3" Text='<%# Eval("Misc3")%>' runat="server" Visible="true" MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrMisc3" runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>--%>

                       <%--       <asp:TemplateField HeaderText ="Misc 4" SortExpression ="Misc4">
                                <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblMisc4" runat="server" Text='<%# Eval("Misc4")%>' Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtMisc4" Text='<%# Eval("Misc4")%>' runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrMisc4" runat="server" Visible="true" MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>--%>

                          <%--    <asp:TemplateField HeaderText ="Misc 5" SortExpression ="Misc5">
                                   <HeaderStyle Wrap="true"></HeaderStyle>
                                        <ItemStyle wrap="true"  />
                                  <ItemTemplate >
                                      <asp:Label ID="lblMisc5" runat="server" Text='<%# Eval("Misc5")%>' Visible="true"></asp:Label>
                                   </ItemTemplate>

                                    <EditItemTemplate>
                                       <asp:TextBox ID="txtMisc5" Text='<%# Eval("Misc5")%>' runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </EditItemTemplate>

                                    <FooterTemplate>
                                        <asp:TextBox ID="txtFtrMisc5" runat="server" Visible="true"  MaxLength="500"></asp:TextBox>
                                    </FooterTemplate>
                           </asp:TemplateField>--%>
                       </Columns>
                       </asp:GridView>
            </table>

             <asp:HiddenField ID="hndRowIndex" runat="server" />

            
           
        </ContentTemplate>

<%--            <triggers>
            <asp:AsyncPostBackTrigger ControlID="FnqDgNEx" EventName="SelectedIndexChanged1" />
            </triggers>--%>
    </asp:UpdatePanel>
</asp:Content>