<%@ Page Title="Currency / Asset" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="FinIQ_AssetDef.aspx.vb" Inherits="FinIQWebApp.FinIQ_AssetDef" EnableEventValidation="false" %>

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



    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
    <script src="../FinIQJS/SortFilter_Grid.js"></script> <%--Added for Mashreq MASINT- 2019 sort filter on grid view--%> 
    <link href="../FinIQJS/FreezeGrid.css" type="text/css" rel="stylesheet">
    <script src="../FinIQJS/FreezeGrid.js" type="text/javascript"></script>
    <style>
        .widthlblMon {
            width: 53px;
        }

        .textinput {
            width: 115px;
        }
        /*.OptionalField
        {
            width:116px;
            margin-left:10px;
        }*/
        .textareaLongName {
            width: 379px;
        }

        .textremark {
 width: 420px;
        }

        .width_fixedHolidays {
            width: 368px;
        }

        .textarea {
            width: 356px;
            vertical-align: top;
        }

        .table1 {
            padding: 2px;
        }

        .leftDiv {
            float: left;
            margin-left: 5px;
        }

        .ChkBox {
         
            margin-top: 5px;
        }

        .TableButton {
            width: 100%;
            margin-top: 10px;
        }
        /*<Changes done by nilesh_s on 15-April-2021 HLBINT-3 Designed get changed after click on last page>*/ 
        .mainContainer {
            width: 2250px;
            /*margin-top: 10px;*/
        }
         /*</Changes done by nilesh_s on 15-April-2021 HLBINT-3 Designed get changed after click on last page>*/ 
        .marginzero, #ctl00_MainContent_chkRestricted {
            margin-left: 0px;
            border: solid 1px #D5D5D5;
        }

        #ctl00_MainContent_txtRemark {
            width: 385px !important;
        }

        #ctl00_MainContent_grpDays {
            width: 400px !important;
        }

        #ctl00_MainContent_txtRiskScore {
            width: 115px !important;
        }

        .ExtraFields {
            /*width: 1160px;*/
            height: 88px;
            margin-top: 2px;
            margin-left: 1px;
        }

        .ddl_Market_Type {
            width: 135px !important;
        }

        .dropdown {
            width: 115px !important;
        }
        /*.Gridview 
        {
            table-layout:fixed;
            width:100%;
        }
        .ctl00_MainContent_dgAssetDef a, .Grid a:link {
            color: #3B66D6;
        }
        .Grid th 
        {
            border: solid 1px #dddddd;
            background-color: #ededed !important;
        }*/
        .tdrightLabel {
            width: 110px;
        }

        .tdboxes {
            width: 142px;
        }

        .ActiveN span {
            color: #CCCCCC !important;
        }

        .tdLeftLabel {
            width: 140px;
        }

        .width_ActionDropDown {
            width: 175px;
        }

        .width_txtGeoCity {
            width: 145px;
        }

        .width_lblRegion {
            width: 110px;
        }

        .width_lblCity {
            width: 162px;
        }

        .padding_top_gridview {
            padding-top: 10px;
        }

        width_txtRiskScore, .width_ActionButton {
            width: 125px;
        }

        .deactivate_sticker {
            height: 15px;
            width: 15px;
            margin-bottom: -3px;
        }

        .width_ActionLabel {
            width: 80px;
        }
        /*.paddingLabel_FixedHolidays {
            padding-left:5px;
        }*/
        /*.paddingchk_FixedHolidays {
            padding-right:5px;
        }*/
        .Action {
            margin-top: -12px;
            /*width: 1159px;*/
        }

        /* <Start> Added by nilesh.shelar on 31-Aug-2021 :HLBINT-554 checkbox and text are not aligned properly.Checkbox shifted on top*/
        .padding_chkRestricted {
            padding-right: 50px;
           vertical-align:top;
           
        }

         .padding_chk {
         vertical-align:top;
           
        }
           /* <End> Added by nilesh.shelar on 31-Aug-2021 :HLBINT-554 checkbox and text are not aligned properly.Checkbox shifted on top*/

        .Padding_optional {
            padding-left: 5px;
        }

        .btnAddOpt {
            margin-left: 15px;
        }

        .wrap {
            /*word-wrap:break-word;*/
            word-break: break-all;
        }

        _
        .auto-style7 {
            height: 26px;
        }
        .btn_css {
            width: 83px;
        }
        .padding {
            margin-right: 10px;
            margin-top: 5px;
        }
        table.left_div_table td {
            padding: 2px 2px 2px 2px;
        }
        .rows_per_page {
            margin-right: 8px;
            margin-top: 5px;
            text-align: center;
        }
        .btn_padding {
            padding-top: 5px;
            padding-right: 10px;
        }
    </style>
     <script type="text/javascript">
        
         function checkValidation() {
             var gvDrv = document.getElementById("<%=dgAssetDef.ClientID%>");

            var chk = false;
            if (gvDrv != null) {
                for (i = 1; i < gvDrv.rows.length; i++) {
                    var cell = gvDrv.rows[i].cells;
                    var ip = cell[0].getElementsByTagName("input");
                    if (ip[0] != null) {
                        if (ip[0].checked) {
                            chk = true;
                            break;
                        }
                    }

                }
                if (chk) {
                  
                    return true;
                }
                else {
                    MsgDialog(this, 'Warning', 0, 'No record selected for activation/deactivation.');
                    // alert(' Please select checkbox');
                    return false;
                }
            }
        }

    </script>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
           
            <div class="mainContainer">
                <table>
<tr>
                        <td>
                            <div>
                                <table>
                                    <tr>
                                        <td class="btn_padding">
                                            <asp:Button ID="btnAddOpt" runat="server" Width="83px" Text="Add New" CssClass="btn btn_css" ToolTip="Add New (Ctrl + Shift + a)"></asp:Button>
                                        </td>
                                        <td class="btn_padding">
                                            <%--  <asp:Button ID="btnSave" runat="server" Width="83px" Text="Save" CssClass="btn" OnClientClick="return confirm('Do you want to perform this Action ?');"></asp:Button>--%>
                                            <asp:Button ID="btnSave" runat="server" Width="83px" Text="Save" CssClass="btn btn_css"></asp:Button>
                                        </td>
                                        <td class="btn_padding">
                                            <asp:Button ID="btnEditOpt" runat="server" Width="83px" Text="Edit" CssClass="btn btn_css"></asp:Button>
                                        </td>
                                        <td class="btn_padding">
                                            <asp:Button ID="btnCancel" runat="server" Width="83px" Text="Cancel" CssClass="btn btn_css"></asp:Button>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
     <td style="padding-left: 10px;">
                            <asp:Label runat="server" ID="lblError" Text="" Visible="true" CssClass="lblError" Style="color: #FF4E4E !important"></asp:Label>
                            <asp:Label runat="server" ID="lblInfo" Text="" Visible="true" CssClass="lblInfo" Style="color: #0368B6 !important"></asp:Label>
                            <asp:Label ID="lblsuccess" runat="server" Text="" CssClass="lblsuccess" Style="color: #008000 !important"></asp:Label>
                                            </td>
</tr>
            </table>
                <div class="leftDiv">
                    

                    <fieldset runat="server" id="grpDetails" class="filter">
                        <table class="table1 left_div_table">
                            <tr>
                                <td style="height: 10px;" colspan="5"></td>



                            </tr>
                            <tr>
                                <td></td>
                                <td class="tdLeftLabel">
                                    <asp:Label ID="lblIDCode" runat="server" Text="Asset Code" CssClass="lbl"></asp:Label>
                                </td>
                                <td class="tdboxes">
                                    <%--<asp:TextBox ID="txtIDCode" runat="server" CssClass="txt" OnKeyPress=" return AllowAlphaNumericfortxtIDCode(this);"></asp:TextBox>--%>
                                    <asp:TextBox ID="txtIDCode" runat="server" CssClass="txt"></asp:TextBox>
                                    <asp:Label runat="server" ID="lblInfo1" Text="" Style="width: 15px;" Visible="true" CssClass="lblInfo1"></asp:Label>
                                </td>

                                <td>
                                    <asp:Label ID="lblAssetClass" runat="server" Text="Asset Class" CssClass="lbl"></asp:Label></td>
                                <td style="width: 150px;">
                                    <asp:DropDownList ID="cboAssetClass" runat="server" CssClass="ddl dropdown" AutoPostBack="true"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <span style="color: #FF0000; margin-left: -12px;">*</span>
                                    <asp:Label ID="lblIDName" runat="server" Text="Long Name" CssClass="lbl"></asp:Label>
                                </td>
                                <td colspan="3">
                                    <asp:TextBox ID="txtIDName" runat="server" CssClass="txt textareaLongName" MaxLength ="50"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblQAOrder" runat="server" Text="Quotation Order" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboQAOrder" runat="server" CssClass="ddl dropdown" AutoPostBack="true"></asp:DropDownList>
                                </td>

                                <td class="tdrightLabel">
                                    <span style="color: #FF0000; margin-left: -12px;">*</span>
                                    <asp:Label ID="lblQACcy" runat="server" Text="Quote Against " CssClass="lbl"></asp:Label>
                                </td>
                                <td class="tdboxes">
                                  <%--  <asp:TextBox ID="txtQACcy" runat="server" CssClass="txt textinput" MaxLength="3" AutoPostBack="true" OnKeyPress=" return AllowAlphaNumeric(this);"></asp:TextBox>--%>
                                      <asp:TextBox ID="txtQACcy" runat="server" CssClass="txt textinput" MaxLength="3" AutoPostBack="true"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblDPAmt" runat="server" Text="Decimal Places (Amount)" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDPAmt" runat="server" CssClass="txt textinput" OnKeyPress=" return AllowNumericWithdecimal_MarketData(this);" MaxLength="1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="lblDPRate" runat="server" Text="In Rates" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDPRate" runat="server" CssClass="txt textinput" OnKeyPress=" return AllowNumericWithdecimal_MarketData(this);" MaxLength="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="LblYearDayBasis" runat="server" Text="Year Day Basis" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboShortTermBasis" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>360</asp:ListItem>
                                        <asp:ListItem>365</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Label ID="lblLongTerm" runat="server" Text="Long Term" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboLongTermBasis" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>360</asp:ListItem>
                                        <asp:ListItem>365</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td >
                                    <asp:Label ID="lblMarketType" runat="server" Text="Market Type" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboTypeMarket" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <%--  <asp:ListItem></asp:ListItem>
                                                <asp:ListItem>BN</asp:ListItem>
                                                <asp:ListItem>CO</asp:ListItem>
                                                <asp:ListItem>EQ</asp:ListItem>
                                                <asp:ListItem>FX</asp:ListItem>
                                                <asp:ListItem>HL</asp:ListItem>
                                                <asp:ListItem>HY</asp:ListItem>
                                                <asp:ListItem>IR</asp:ListItem>
                                                <asp:ListItem>OT</asp:ListItem>--%>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Label ID="lblAssetType" runat="server" Text="Asset Type" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboAssetType" runat="server" CssClass="ddl dropdown" AutoPostBack="true" style= "width:0px">
                                        <%--   <asp:ListItem></asp:ListItem>
                                                <asp:ListItem>BN</asp:ListItem>
                                                <asp:ListItem>CO</asp:ListItem>
                                                <asp:ListItem>EQ</asp:ListItem>
                                                <asp:ListItem>FX</asp:ListItem>
                                                <asp:ListItem>HL</asp:ListItem>
                                                <asp:ListItem>HY</asp:ListItem>
                                                <asp:ListItem>IR</asp:ListItem>
                                                <asp:ListItem>OT</asp:ListItem>--%>
                                    </asp:DropDownList>
                                </td>

                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblMode_Exchange" runat="server" Text="Mode/Exchange" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboSettlementMode" runat="server" CssClass="ddl dropdown" AutoPostBack="true"></asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Label ID="lblCutoff" runat="server" Text="Cutoff" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                   <%-- <asp:TextBox ID="txtSetCutoff" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox>--%>
                                     <asp:TextBox ID="txtSetCutoff" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblQuoteType" runat="server" Text="Quote Type" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboQuoteTypeIR" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>ASKONLY</asp:ListItem>
                                        <asp:ListItem>BIDONLY</asp:ListItem>
                                        <asp:ListItem>FIXING</asp:ListItem>
                                        <asp:ListItem>MIDFORBOTH</asp:ListItem>
                                        <asp:ListItem>REGULATORY</asp:ListItem>
                                        <asp:ListItem>TWOWAY</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Label ID="lblUnit" runat="server" Text="Unit" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                       <%-- <Start>Added by nilesh.shelar on 11-Nov-2021 RHBSIIN-598 : Not able to input Lot Size (Random issue) Ref :Mee Ling Yap.--%>
                                  <%--  <asp:TextBox ID="txtUnit" runat="server" CssClass="txt textinput" OnKeyPress=" return AllowNumericOnly(this);"></asp:TextBox>--%>
                                      <asp:TextBox ID="txtUnit" runat="server" CssClass="txt textinput" OnKeyPress="return isNumberKey(event);"></asp:TextBox>
                                       <%-- <End>Added by nilesh.shelar on 11-Nov-2021 RHBSIIN-598 : Not able to input Lot Size (Random issue) Ref :Mee Ling Yap.--%>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblLotSize" runat="server" Text="Lot Size" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                   <%-- <Start>Added by nilesh.shelar on 02-Nov-2021 RHBSIIN-598 : Not able to input Lot Size (Random issue).--%>
                                    <%--<asp:TextBox ID="txtLotSize" runat="server" CssClass="txt textinput" OnKeyPress=" return AllowNumericOnly(this);"></asp:TextBox>--%>
                                    <asp:TextBox ID="txtLotSize" runat="server" CssClass="txt textinput" OnKeyPress="return isNumberKey(event);" MaxLength="4"></asp:TextBox>
                                        <%--<End>Added by nilesh.shelar on 02-Nov-2021 RHBSIIN-598 : Not able to input Lot Size (Random issue).--%>
                                </td>
                                <td>
                                    <asp:Label ID="lblAlternateAmount" runat="server" Text="Alternate Amount" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                  <%--  <asp:TextBox ID="txtAIAmts" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox>--%>
                                      <asp:TextBox ID="txtAIAmts" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblAlternateIdentifiers" runat="server" Text="Alternate Identifier" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                  <%--  <asp:TextBox ID="txtAIAlias" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox>--%>
                                      <asp:TextBox ID="txtAIAlias" runat="server" CssClass="txt textinput" ></asp:TextBox>

                                </td>
                                <td>
                                    <asp:Label ID="lblAlternateNumeric" runat="server" Text="Alternate Numeric" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                     <%-- <Start>Added by nilesh.shelar on 11-Nov-2021 RHBSIIN-598 : Not able to input Lot Size (Random issue) Ref :Mee Ling Yap.--%>
                                 <%--   <asp:TextBox ID="txtAINumeric" runat="server" CssClass="txt textinput" OnKeyPress=" return AllowNumericOnly(this);"></asp:TextBox>--%>
                                       <asp:TextBox ID="txtAINumeric" runat="server" CssClass="txt textinput" OnKeyPress="return isNumberKey(event);"></asp:TextBox>
                                     <%-- <End>Added by nilesh.shelar on 11-Nov-2021 RHBSIIN-598 : Not able to input Lot Size (Random issue).--%>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblDisplayAttributes" runat="server" Text="Display Attributes" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDisplayPriority" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="lblIDtNo" runat="server" Text="Internal No" CssClass="lbl" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtIDtNo" runat="server" CssClass="txt textinput" Visible="false"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblCategory" runat="server" Text="Category" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="CmbCategory" runat="server" CssClass="ddl dropdown" AutoPostBack="true"></asp:DropDownList>
                                  <%--  <asp:TextBox ID="txtCatRisk" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);" Visible="false"></asp:TextBox>--%>
                                      <asp:TextBox ID="txtCatRisk" runat="server" CssClass="txt textinput" Visible="false"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="Group" runat="server" Text="Group" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                   <%-- <asp:TextBox ID="txtCatGroup" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox>--%>
                                     <asp:TextBox ID="txtCatGroup" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="auto-style7"></td>
                                <td class="auto-style7">
                                    <asp:Label ID="lblIRVol" runat="server" Text="IR Vol" CssClass="lbl"></asp:Label>
                                </td>
                                <td class="auto-style7">
                                    <asp:TextBox ID="txtRiskIR" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                                <td class="auto-style7">
                                    <asp:Label ID="lblFXVol" runat="server" Text="FX Vol" CssClass="lbl"></asp:Label>
                                </td>
                                <td class="auto-style7">
                                    <asp:TextBox ID="txtRiskFX" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                            </tr>
                            <%-- <tr>
                                <td style="height: 5px;"></td>
                            </tr>
                            <tr>--%>
                            <%--   <td>
                                    <asp:CheckBox ID="chkSetRT" runat="server"  cssclass="ChkBox" Text=""></asp:CheckBox>
                                </td>
                                <td>
                                    <asp:Label ID="lblRealtime" runat="server" Text="Realtime" CssClass="lbl padding_chkRestricted"></asp:Label>
                                    <asp:CheckBox ID="chkRestricted" runat="server" CssClass="ChkBox" Text=""></asp:CheckBox>



                                </td>
                                <td>
                                    <asp:Label ID="lblRestricted" runat="server" Text="Restricted" CssClass="lbl"></asp:Label>
                                </td>--%>
                            <%-- <td>
                                    <asp:CheckBox ID="chkDeactivate" runat="server" Text="Deactivate"></asp:CheckBox><%--<asp:Label ID="Label20" runat="server" Text="Deactivate" CssClass="lbl"></asp:Label>--%>
                            <%--</td>--%>
                            <%--  </tr>
                            <tr>
                                <td style="height: 5px;"></td>
                            </tr>--%>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblCountry" runat="server" Text="Country" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <%--<asp:TextBox ID="txtGeoCountry" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox>--%>
                                    <asp:TextBox ID="txtGeoCountry" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="lblNDF" runat="server" Text="NDF" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="CmbNDF" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>N</asp:ListItem>
                                        <asp:ListItem>Y</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr style="display: none">
                                <td></td>
                                <td>
                                    <asp:Label ID="lblNewlyListed" runat="server" Text="Newly Listed" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:CheckBox ID="ChkNewlyListed" runat="server" Text=""></asp:CheckBox>
                                </td>
                                <td></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblBloombergCode" runat="server" Text="Bloomberg Code" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtBloombergCode" runat="server" CssClass="txt textinput"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="lblRiskScore" runat="server" Text="Risk Score" CssClass="lbl"></asp:Label></td>
                                <td>
                                   <%-- <asp:TextBox ID="txtRiskScore" runat="server" OnKeyPress="return AllowAlphaNumeric(this);" CssClass="txt textinput"></asp:TextBox></td>--%>
                                     <asp:TextBox ID="txtRiskScore" runat="server" CssClass="txt textinput"></asp:TextBox></td>

                            </tr>
                            <tr style="display: none">
                                <td></td>
                                <td>
                                    <asp:Label ID="lblAssetGroup" runat="server" Text="Asset Group" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboAssetGroup" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>N</asp:ListItem>
                                        <asp:ListItem>Y</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Label ID="lblAssetExemption" runat="server" Text="SD Exemption" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:CheckBox ID="ChkAssetexemption" runat="server" Text=""></asp:CheckBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblRateInterpolationBasis" runat="server" Text="Rate Interpolation Basis" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="CboRateInterpolationBasis" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>DEPO</asp:ListItem>
                                        <asp:ListItem>SWAP</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Label ID="lblSuspended" runat="server" Text="" CssClass="lbl"></asp:Label>
                                </td>
                               <%-- <td style="display: none">--%>
                                 <td>
                                   
                                   
                                </td>
                            </tr>

                            <tr>
 <td></td>
                                  <td>
                                     <asp:Label ID="lblGulfCurrencyType" runat="server" Text="Gulf Currency Type" CssClass="lbl"></asp:Label>
                                </td>
                                <td >
                                     <asp:DropDownList ID="ddlGulfCurrencyType" runat="server" CssClass="ddl dropdown" AutoPostBack="true" style= "width:0px">
                                    </asp:DropDownList>
                                </td>

                                 <td>
                                     <asp:Label ID="lblBuddyCurrency" runat="server" Text="Buddy Currency" CssClass="lbl"></asp:Label>
                                </td>
                                <td >
                                     <asp:DropDownList ID="ddlBuddyCurrency" runat="server" CssClass="ddl dropdown" AutoPostBack="true" style= "width:0px">
                                    </asp:DropDownList>
                                </td>
                            </tr>

                            <%--''''Start'<Changes done by nilesh shelar on 10-March-2021 : JiraID:RHBSIIN-88 :Need add field to capture ISIN, Sector, Listing Status, Place of Incorporation>--%>
                            <tr>
                                <td></td>
                                <td>
                                     <asp:Label ID="lblSector" runat="server" Text="Sector" CssClass="lbl"></asp:Label>
                                </td>
                                <td >
                                     <asp:DropDownList ID="ddlSector" runat="server" CssClass="ddl dropdown" AutoPostBack="true" style= "width:0px">
                                       
                                    </asp:DropDownList>
                                    <%--<asp:TextBox ID="txtSector" runat="server" CssClass="txt textinput" MaxLength="100"></asp:TextBox>--%>
                                </td>
                                <td>
                                     <asp:Label ID="lblISINCode" runat="server" Text="ISIN code" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                     <asp:TextBox ID="txtISINCode" runat="server" CssClass="txt textinput" MaxLength="20"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                      <asp:Label ID="lblListingStatus" runat="server" Text="Listing Status" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlListingStatus" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>Listed</asp:ListItem>
                                        <asp:ListItem>Delisted</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                     <asp:Label ID="lblPlaceOfIncorporation" runat="server" Text="Place Of Incorporation" CssClass="lbl"></asp:Label>
                                </td>
                                <td>
                                     <asp:DropDownList ID="ddlPlaceOfIncorporation" runat="server" CssClass="ddl dropdown" AutoPostBack="true">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem>Domestic</asp:ListItem>
                                        <asp:ListItem>Foreign</asp:ListItem>
                                    </asp:DropDownList>
                                </td>

                            </tr>

                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblBNMPurposeCode" runat="server" Text="BNM Purpose Code" CssClass="lbl"></asp:Label>
                                </td>
                                <td colspan="3">
                                    <asp:DropDownList ID="ddlBNMPurposeCode" runat="server" AutoPostBack="true" style= "width:379px">
                                    </asp:DropDownList> 
                                </td>
                                
                            </tr>
                            <%--''''End'<Changes done by nilesh shelar on 10-March-2021 : JiraID:RHBSIIN-88 :Need add field to capture ISIN, Sector, Listing Status, Place of Incorporation>--%>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Label ID="lblAlternateLongName" runat="server" Text="Alternate Long  Name" CssClass="lbl"></asp:Label></td>
                                <td colspan="3">
                                    <asp:TextBox ID="txtAlternateLongName" runat="server" CssClass="txt textareaLongName"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblDenominationcurrency" runat="server" Text="Alternate Denomination currency " CssClass="lbl"></asp:Label></td>
                                <td>
                                 <%--   <asp:TextBox ID="txtAltDenominationCurrency" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>--%>
                                       <asp:TextBox ID="txtAltDenominationCurrency" runat="server" CssClass="txt textinput"></asp:TextBox></td>
                                <td>
                                    <asp:Label ID="lblAssetName" runat="server" Text="Alternate Asset Name " CssClass="lbl"></asp:Label></td>
                                <td>
                                    <%--<asp:TextBox ID="txtAlternateAssetName" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>--%>
                                    <asp:TextBox ID="txtAlternateAssetName" runat="server" CssClass="txt textinput"></asp:TextBox></td>
                            </tr>

                            <tr>
                                <td></td>
                                <td>
                                    <asp:CheckBox ID="chkSetRT" runat="server" CssClass="ChkBox" Text="" style="padding-top:5px;"></asp:CheckBox>
                                    <asp:Label ID="lblRealtime" runat="server" Text="Realtime" CssClass="lbl padding_chkRestricted"></asp:Label><%-- Added by nilesh.shelar on 31-Aug-2021 :HLBINT-554 checkbox and text are not aligned properly.Checkbox shifted on top--%>
                                </td>
                                <td>
                                    <asp:CheckBox ID="chkRestricted" runat="server" CssClass="ChkBox" Text=""></asp:CheckBox>
                                    <asp:Label ID="lblRestricted" runat="server" Text="Restricted" CssClass="lbl padding_chkRestricted"></asp:Label> <%-- Added by nilesh.shelar on 31-Aug-2021 :HLBINT-554 checkbox and text are not aligned properly.Checkbox shifted on top--%>
                                </td>
                                <td>
                                    <asp:CheckBox ID="chkDeactivate" runat="server" Text="Deactivate"></asp:CheckBox><%--<asp:Label ID="Label20" runat="server" Text="Deactivate" CssClass="lbl"></asp:Label>--%>
                                    <asp:CheckBox ID="ChkDelisted" runat="server" Text="Delisted"></asp:CheckBox>
                                </td>
                            </tr>
                        </table>
                    </fieldset>

                    <fieldset runat="server" id="grpOptional" class="filter" style="margin-top: 15px;">
                        <legend>
                            <asp:CheckBox ID="chkOptional" runat="server" Text="" CssClass="ChkBox" AutoPostBack="true"></asp:CheckBox>
                            <asp:Label ID="lblOptional" runat="server" Text="Optional" CssClass="lbl padding_chk"></asp:Label></legend> <%-- Added by nilesh.shelar on 31-Aug-2021 :HLBINT-554 checkbox and text are not aligned properly.Checkbox shifted on top--%>
                                        <table class="table1">
                                            <tr>
                                                <td class="width_lblCity">
                                                    <asp:Label ID="lblCity" runat="server" Text="City" CssClass="lbl Padding_optional"></asp:Label></td>
                                                <td class="width_txtGeoCity">
                                                   <%-- <asp:TextBox ID="txtGeoCity" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>--%>
                                                      <asp:TextBox ID="txtGeoCity" runat="server" CssClass="txt textinput" MaxLength ="50" ></asp:TextBox></td>

                                                
                                            
                                                <td class="width_lblRegion">
                                    <asp:Label ID="lblRegion" runat="server" Text="Region" CssClass="lbl" Style="width: 110px;"></asp:Label></td>
                                <td>
                                                   <%-- <asp:TextBox ID="txtGeoRegion" runat="server" CssClass="txt textinput " OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>--%>
                                                        <asp:TextBox ID="txtGeoRegion" runat="server" CssClass="txt textinput" MaxLength ="50"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblMisc1" runat="server" Text="Misc 1" CssClass="lbl Padding_optional"></asp:Label></td>
                                                <td>
                                                    <%--<asp:TextBox ID="txtMisc1" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>--%>
                                                    <asp:TextBox ID="txtMisc1" runat="server" CssClass="txt textinput"></asp:TextBox></td>
                                                <td>
                                    <asp:Label ID="lblMisc2" runat="server" Text="SEDOL" CssClass="lbl" Style="width: 110px;"></asp:Label></td>
                                                <td>
                                                    <asp:TextBox ID="txtMisc2" runat="server" CssClass="txt textinput"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblMisc3" runat="server" Text="CUSIP" CssClass="lbl Padding_optional"></asp:Label></td>
                                                <td>
                                                   <%-- <asp:TextBox ID="txtMisc3" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>--%>
                                                     <asp:TextBox ID="txtMisc3" runat="server" CssClass="txt textinput"></asp:TextBox></td>
                                <td>
                                    <asp:Label ID="lblShariaCompliant" runat="server" Text="Sharia-Compliant" CssClass="lbl"></asp:Label></td>
                                <td>
                                    <asp:CheckBox ID="ChkShariaCompliant" runat="server" Text=""></asp:CheckBox></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblFixedHolidays" runat="server" Text="Fixed Holidays" CssClass="lbl Padding_optional"></asp:Label></td>
                                                <td colspan="3">

                                    <table id="grpDays">
                                                            <tr>
                                                                  <%-- <Start>Added by nilesh.shelar on 31-Aug-2021 :HLBINT-554 checkbox and text are not aligned properly.Checkbox shifted on top--%>
                                                                <td class="widthlblMon">
                                                                    <asp:Label ID="lblMon" runat="server" Text="Mon" CssClass="lbl padding_chk"></asp:Label>
                                                                    <asp:CheckBox ID="ChkFHMon" runat="server" Text="" class="paddingchk_FixedHolidays"></asp:CheckBox>
                                                                </td>
                                                                <td class="widthlblMon">
                                                                    <asp:Label ID="lblTue" runat="server" Text="Tue" CssClass="lbl padding_chk"></asp:Label>
                                                                    <asp:CheckBox ID="ChkFHTue" runat="server" Text="" class="paddingchk_FixedHolidays"></asp:CheckBox>
                                                                </td>
                                                                <td class="widthlblMon">
                                                                    <asp:Label ID="lblWed" runat="server" Text="Wed" CssClass="lbl padding_chk"></asp:Label>
                                                                    <asp:CheckBox ID="ChkFHWed" runat="server" Text="" class="paddingchk_FixedHolidays"></asp:CheckBox>
                                                                </td>
                                                                <td class="widthlblMon">
                                                                    <asp:Label ID="lblThr" runat="server" Text="Thr" CssClass="lbl padding_chk"></asp:Label>
                                                                    <asp:CheckBox ID="chkFHThr" runat="server" Text="" class="paddingchk_FixedHolidays"></asp:CheckBox>
                                                                </td>
                                                                <td class="widthlblMon">
                                                                    <asp:Label ID="lblFri" runat="server" Text="Fri" CssClass="lbl padding_chk"></asp:Label>
                                                                    <asp:CheckBox ID="chkFHFri" runat="server" Text="" class="paddingchk_FixedHolidays"></asp:CheckBox>
                                                                </td>
                                                                <td class="widthlblMon">
                                                                    <asp:Label ID="lblSat" runat="server" Text="Sat" CssClass="lbl padding_chk"></asp:Label>
                                                                    <asp:CheckBox ID="chkFHSat" runat="server" Text="" class="paddingchk_FixedHolidays"></asp:CheckBox>
                                                                </td>
                                                                <td class="widthlblMon">
                                                                    <asp:Label ID="lblSun" runat="server" Text="Sun" CssClass="padding_chk"></asp:Label>
                                                                    <asp:CheckBox ID="CHKFHSun" runat="server" Text="" class="paddingchk_FixedHolidays"></asp:CheckBox>
                                                                </td>
                                                                    <%-- <End>Added by nilesh.shelar on 31-Aug-2021 :HLBINT-554 checkbox and text are not aligned properly.Checkbox shifted on top--%>
                                                            </tr>
                                                        </table>
                                                        

                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblRemark" runat="server" Text="Remark" CssClass="lbl Padding_optional"></asp:Label>

                                                </td>
                                                <td colspan="3">
                                                    <asp:TextBox ID="txtRemark" runat="server" CssClass="txt textareaLongName" MaxLength="50"></asp:TextBox>

                                                </td>
                                            </tr>
                                            
                                        </table>
                                    </fieldset>

                         
                        <table>
                            <tr>
                                <td style="height: 5px;"></td>
                            </tr>
                            <tr>
                                <td style="width: 161px;"></td>

                            </tr>
                            <tr>
                                <td style="height: 6px;"></td>
                            </tr>
                        </table>


                    <table class="TableButton table1">
                    </table>

                </div>

                <div class="rightDiv">
                    <table class="table1">
                        <tr>
                            <td>
                                <fieldset class="filter Action">
                                    <legend>Action</legend>
                                    <table class="table1">
                                        <tr>
                                            <td class="btn_padding">
                                                <asp:Label ID="lblMarketTypeRight" runat="server" Text="Market Type" CssClass="lbl"></asp:Label></td>
                                            <td class="btn_padding">
                                                <asp:DropDownList ID="cboMarketTypeSearch" runat="server" CssClass="ddl" AutoPostBack="true" Width="80px">
                                                    
                                                </asp:DropDownList></td>
                                            <td class="btn_padding">
                                                <asp:Label ID="lblAssetTypeRight" runat="server" Text="Asset Type" CssClass="lbl" Style="margin-left: 5px;"></asp:Label></td>
                                            <td class="btn_padding">
                                                <asp:DropDownList ID="cboAssetTypeSearch" runat="server" CssClass="ddl" AutoPostBack="true" Width="115px">
                                                   
                                                </asp:DropDownList></td>
                                            
                                            <%-- <td>
                                                <asp:Button ID="btnAddOpt" runat="server" Width="83px" Text="Add New" CssClass="btn" Style="margin-bottom: 3px"></asp:Button>
                                               
                                            </td> --%>
                                        
                                         
                                            <%--<td>
                                              <%--  <asp:Button ID="btnSave" runat="server" Width="83px" Text="Save" CssClass="btn" OnClientClick="return confirm('Do you want to perform this Action ?');"></asp:Button>--%>
                                            <%-- <asp:Button ID="btnSave" runat="server" Width="83px" Text="Save" CssClass="btn"  Style="margin-bottom: 3px"></asp:Button>
                                            </td> --%>

                                               <%-- <asp:Button ID="btnActivate" runat="server" Width="80px" Text="Activate" CssClass="btn" OnClientClick="if(checkValidation()) return confirm('Do you want to perform this Action ?');"></asp:Button>--%>
                                            <%-- <td >
                                           <asp:Button ID="btnActivate" runat="server" Width="80px" Text="Activate" CssClass="btn" Style="margin-bottom: 3px" ></asp:Button>
                                                 </td>
                                                <td class="ctlBlotterPaddingRight">
                                                <asp:Button ID="btnExportToExcel" runat="server" Width="100px" Text="Export To Excel" CssClass="btn" Style="margin-bottom: 3px"></asp:Button>

                                            </td>--%>
                                            <td class="btn_padding">
                                                <asp:Label ID="lblActiveYN" runat="server" Text="Active Y/N" CssClass="lbl"></asp:Label></td>
                                            <td class="btn_padding">
                                                <asp:DropDownList ID="cboActiveYN" runat="server" CssClass="ddl" AutoPostBack="true" Width="80px">
                                                    <asp:ListItem>BOTH</asp:ListItem>
                                                    <asp:ListItem>NO</asp:ListItem>
                                                    <asp:ListItem>YES</asp:ListItem>
                                                </asp:DropDownList></td>
                                            <td colspan="2">
                                                <asp:Label ID="lblSearch" runat="server" Text="Search" CssClass="lbl btn_padding"></asp:Label>
                                                <asp:TextBox ID="txtSearch" runat="server" CssClass="txt" AutoPostBack="True" onkeydown="return EnterEvent(event)" MaxLength="10" Width="90px"></asp:TextBox>
                                            </td>
                                           
                                            <td>
                                                <asp:Button ID="BtnSearch" runat="server" CssClass="btnSearch" />
                                            </td>
                                            <%-- <td>
                                                 <asp:Label runat="server" ID="lblRecordCnt" Text="Total Record(s)" CssClass="lbl"></asp:Label>
                                            </td>--%>
                                            
                                            <%--  <td >
                                                <asp:Label ID="lblDeactivated" runat="server" Text="Deactivated" CssClass="lbl"></asp:Label> </td>
                                        <td>
                                            <img src="Images/red.png" class="deactivate_sticker" />
                                        </td>--%>
                                           <%-- <td style="padding-left: 10px;">
                                                <asp:Label runat="server" ID="lblError" Text="" Visible="true" CssClass="lblError"></asp:Label>
                                                <asp:Label runat="server" ID="lblInfo" Text="" Visible="true" CssClass="lblInfo"></asp:Label>
                                            </td>--%>
                                            <td>
                                                <asp:Label ID="lblShortcut" runat="server" Text="Shortcut" CssClass="lbl" Visible="False"></asp:Label></td>
                                            <td>
                                                <asp:DropDownList ID="cboShortcut" runat="server" CssClass="ddl dropdown" Visible="False" AutoPostBack="true">
                                                    <asp:ListItem>FX-FX-BOTH</asp:ListItem>
                                                    <asp:ListItem>FX-FX-NO</asp:ListItem>
                                                    <asp:ListItem>FX-FX-YES</asp:ListItem>
                                                </asp:DropDownList></td>
                                            
                                        </tr>
                                        <tr>
                                            <%--<td >
                                                <asp:Label ID="lblSearch" runat="server" Text="Search" CssClass="lbl"></asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="txtSearch" runat="server" CssClass="txt" AutoPostBack="True" onkeydown="return EnterEvent(event)" MaxLength="10" Width="115px"></asp:TextBox>
                                                <asp:Button ID="BtnSearch" runat="server" CssClass="btnSearch" />
                                            </td>--%>
                                            <%-- --%>
                                            <%--       <td >
                                                <asp:Label ID="lblActiveYN" runat="server" Text="Active Y/N" CssClass="lbl"></asp:Label></td>
                                            <td>
                                                <asp:DropDownList ID="cboActiveYN" runat="server" CssClass="ddl dropdown" AutoPostBack="true" Width="100px">
                                                    <asp:ListItem>BOTH</asp:ListItem>
                                                    <asp:ListItem>NO</asp:ListItem>
                                                    <asp:ListItem>YES</asp:ListItem>
                                                </asp:DropDownList></td>--%>

                                            <%--
                                            <td >
                                                 <asp:Button ID="btnEditOpt" runat="server" Width="83px" Text="Edit" CssClass="btn"></asp:Button>
                                            </td>
                                             <td >
                                                <asp:Button ID="btnCancel" runat="server" Width="83px" Text="Cancel" CssClass="btn"></asp:Button>
                                            </td>
                                            --%>
                                            <td class="btn_padding">
                                                <%-- <asp:Button ID="btnActivate" runat="server" Width="80px" Text="Activate" CssClass="btn" OnClientClick="if(checkValidation()) return confirm('Do you want to perform this Action ?');"></asp:Button>--%>
                                                <asp:Button ID="btnActivate" runat="server" Width="80px" Text="Activate" CssClass="btn"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
    <!-- edited by Priya L. on 17-May-2018 -->
                                                <%--<asp:Button ID="btnDeactivate" runat="server" Width="80px" Text="Deactivate" CssClass="btn" OnClientClick="if(checkValidation()) return confirm('Do you want to perform this Action ?');"></asp:Button>--%>
    <asp:Button ID="btnDeactivate" runat="server" Width="80px" Text="Deactivate" CssClass="btn" ></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnExportToExcel" runat="server" Text="" CssClass="Export2Excel" ToolTip="Export Excel (Ctrl + Shift + e)"></asp:Button>
    
                                            </td>
                                            <td  colspan="2" class="btn_padding">
													 <asp:Label runat="server" ID="lblRecordCnt" CssClass="lbl"   Text="Total Record(s) : " Style="text-align:center"></asp:Label> 
                                            </td>
                                            <td colspan="3" class="btn_padding">
                                                <asp:Label ID="lblRowsPerPage" runat="server" CssClass="lbl" Text="Record(s) Per Page"></asp:Label>
                                                <asp:TextBox ID="txtRowsPerPage" runat="server" CssClass="txt" MaxLength="2" Width="30" Style="text-align: center;" AutoPostBack="true" onkeypress="return isNumberKey(event)" onkeydown="return EnterEvent(event)" ></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblChk" Text=" record(s) are selected out of  record(s)." CssClass="lblInfo" Visible ="false"></asp:Label>
                                                </td>
                                            <td colspan="4"></td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%-- <fieldset>--%>
                                <%--<legend style="color: black; font-weight: normal;" runat="server" id="lblRecordCnt">Record Count</legend>--%>
                                <table class="table1">
                                    <tr>
                                        <td class="padding_top_gridview">
                                            <div>
                                                <%--style="width: 1000px;"--%>
                                                <asp:GridView ID="dgAssetDef" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                                    BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid" AllowPaging="true" PageSize="11">
                                                    <SelectedRowStyle CssClass="GridItemSelect wrap" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />
                                                    <PagerSettings Mode="NumericFirstLast"
                                                        FirstPageText="First"
                                                        LastPageText="Last"
                                                        Position="Bottom" />
                                                    <%--  <asp:Gridview ID="dgAssetDef" runat="server" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found" BorderWidth="1"
                                rules="All" ShowHeader="true" AllowPaging="True" PageSize="15" PagerStyle-Height="32px"
                                AutoGenerateColumns="false" HeaderStyle-CssClass="GridHeaderTitle" Width="100%"
                                CssClass="Grid" CellPadding="0" RowHeadersWidthSizeMode="DisableResizing;" SelectedRowStyle-Wrap="true"
                                CellSpacing="0" AllowSorting="True">
                              
                                <HeaderStyle CssClass="GridHeader" Height="40px"></HeaderStyle>
                                <FooterStyle CssClass="GridFooter"></FooterStyle>
                                    <PagerStyle CssClass="GridPager" />--%>

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

                                                    <Columns>
                                                        <%-- <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="chkAll" runat="server" OnCheckedChanged="checkAllCheckChanged" AutoPostBack="true" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkSelect" runat="server" OnCheckedChanged="chkSelectCheckChanged" AutoPostBack="true" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                        <asp:TemplateField ControlStyle-Width="23">

                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <HeaderTemplate> 
                                                                <asp:CheckBox ID="chkAll" runat="server"   ItemStyle-Width="25px" OnCheckedChanged="checkAllCheckChanged" AutoPostBack="true" EnableViewState="true"></asp:CheckBox>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>                                                                
                                                                <asp:CheckBox ID="chkSelect" runat="server" ItemStyle-Width="25px" OnCheckedChanged="chkSelectCheckChanged" AutoPostBack="true" EnableViewState="true"></asp:CheckBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="ID">
                                                            <HeaderStyle HorizontalAlign="center" VerticalAlign="Middle" Width="20px"></HeaderStyle>
                                                            <ItemStyle Wrap="False" HorizontalAlign="right" Width="20px" VerticalAlign="Middle"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lnkID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID")%>' CommandName="Select" CausesValidation="False" Style="text-decoration: none;">
                                                                </asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Asset" Visible="true" SortExpression="Code">
                                                            <HeaderStyle Width="60px" />
                                                            <ItemStyle Wrap="true" Width="60px" HorizontalAlign="center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCode" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Code").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Long Name" Visible="true" SortExpression="LongName">
                                                            <HeaderStyle Width="120px" />
                                                            <ItemStyle Wrap="true" Width="120px" HorizontalAlign="left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblLongName" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.LongName").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Quoted Against" Visible="true" SortExpression="QuotedAgainst">
                                                            <HeaderStyle Width="60px" />
                                                            <ItemStyle Wrap="true" Width="60px" HorizontalAlign="center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblQuotedAgainst" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QuotedAgainst").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Market Type" Visible="true" SortExpression="TypeMarket">
                                                            <HeaderStyle Width="60px" />
                                                            <ItemStyle Wrap="true" Width="60px" HorizontalAlign="center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblTypeMarket" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.TypeMarket").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Asset Type" Visible="true" SortExpression="TypeAsset">
                                                            <HeaderStyle Width="60px" />
                                                            <ItemStyle Wrap="true" Width="60px" HorizontalAlign="center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblTypeAsset" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.TypeAsset").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Amount Decimals" Visible="true">
                                                            <HeaderStyle Width="60px" />
                                                            <ItemStyle Wrap="true" Width="60px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblDecimalAmount" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.DecimalAmount").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Rate Decimals" Visible="true">
                                                            <HeaderStyle Width="60px" />
                                                            <ItemStyle Wrap="true" Width="60px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblDecimalRate" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.DecimalRate").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Exchange" Visible="true">
                                                            <HeaderStyle Width="80px" />
                                                            <ItemStyle Wrap="true" Width="80px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblSettlementMode" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.SettlementMode").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Quote Type" Visible="true">
                                                            <HeaderStyle Width="80px" />
                                                            <ItemStyle Wrap="true" Width="80px" HorizontalAlign="left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblGridQuoteType" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QuoteType").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Alternate Identifier" Visible="false">
                                                            <HeaderStyle Width="140px" />
                                                            <ItemStyle Wrap="true" Width="140px" HorizontalAlign="left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblAlternateIdentifierAlias" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AlternateIdentifierAlias").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Lot Size" Visible="false">
                                                            <HeaderStyle Width="80px" />
                                                            <ItemStyle Wrap="true" Width="80px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbllotSize" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.lotSize").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Unit" Visible="false">
                                                            <HeaderStyle Width="80px" />
                                                            <ItemStyle Wrap="true" Width="80px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblGridUnit" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Unit").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Active" Visible="true">
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle Wrap="true" Width="50px" HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblActivationFlag" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.ActivationFlag").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Bloomberg Code" Visible="false">
                                                            <HeaderStyle Width="150px" />
                                                            <ItemStyle Wrap="true" Width="150px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBloomberg_Code" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Bloomberg_Code").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="NDF" Visible="false">
                                                            <HeaderStyle Width="80px" />
                                                            <ItemStyle Wrap="true" Width="80px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblAD_NDF_YN" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AD_NDF_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Newly Created">
                                                            <HeaderStyle Width="50px" />
                                                            <ItemStyle Wrap="true" Width="50px" HorizontalAlign="right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblNEWLY_Listed_YN" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.NEWLY_Listed_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                    </Columns>

                                                </asp:GridView>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <%--  </fieldset>--%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <fieldset runat="server" id="grpExtraFields" class="ExtraFields  filter" visible="false">
                                    <%-- <legend>Extra Fields</legend>
                                    <table class="table1">
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblAssetClass" runat="server" Text="Asset Class" CssClass="lbl"></asp:Label></td>
                                            <td style="width: 150px;">
                                                <asp:DropDownList ID="cboAssetClass" runat="server" CssClass="ddl dropdown" AutoPostBack="true"></asp:DropDownList></td>
                                            <td>
                                                <asp:Label ID="lblRiskScore" runat="server" Text="Risk Score" CssClass="lbl"></asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="txtRiskScore" runat="server" OnKeyPress="return AllowAlphaNumeric(this);" CssClass="txt"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblAlternateLongName" runat="server" Text="Alternate Long  Name" CssClass="lbl"></asp:Label></td>
                                            <td colspan="3">
                                                <asp:TextBox ID="txtAlternateLongName" runat="server" CssClass="txt textarea"></asp:TextBox></td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblDenominationcurrency" runat="server" Text="Alternate Denomination currency " CssClass="lbl"></asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="txtAltDenominationCurrency" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>
                                            <td>
                                                <asp:Label ID="lblAssetName" runat="server" Text="Alternate Asset Name " CssClass="lbl"></asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="txtAlternateAssetName" runat="server" CssClass="txt textinput" OnKeyPress="return AllowAlphaNumeric(this);"></asp:TextBox></td>
                                        </tr>
                                    </table>--%>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
              
        </ContentTemplate>
    </asp:UpdatePanel>

    <script type="text/javascript">

        function EnterEvent(e) {

            if (e.keyCode == 13 || e.keyCode == 9) {

                document.getElementById('<%=btnSearch.ClientID%>').click();
            }
        }

        //function AllowNumericWithdecimal(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 > 31 && (keycode < 48 || keycode > 57) && keycode != 46) { return false; }
        //    else { return true; } return false;
        //}
        //function AllowNumericOnly(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)) { return true; }
        //    else { return false; } return true;
        //}

        ////////function AllowAlphaNumeric(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 < 58) || (keycode > 64 && keycode < 91) || (keycode > 96 && keycode < 123)) {
        ////////        return true;
        ////////    }
        ////////    else {
        ////////        return false;
        ////////    }
        ////////    return true;
        ////////}

        function ViewDialogAssetDefSave(obj, title, dialogText) {
            if ($("#pageName").html() != null) {
            }
            if (!dialogConfirmed) {
                //$('html').append(String.Format("<div id='dialog' title='{0}'><p style='float:left;'><span class='ui-icon ui-icon-alert' style='float:left; margin:0 5px 20px 0;'></span>{1}</p></div>", title, dialogText));
                //$('html').append(String.Format("<div id='dialog' title='{0}'><div class='infoConfirmationBox' style='float:left; height:22px !important; width:22px !important; margin: 13px 15px 20px 10px;'></div><p> " + dialogText + " </p></div>", title));
                $('html').append(String.Format("<div id='dialog' title='{0}'><p style=float:left;><span class='ui-icon ui-icon-alert' style='margin : 0px 5px 20px 0px; float:left;'></span> " + dialogText + " </p></div>", title));

                $('#dialog').dialog
                        ({
                            height: 180,
                            width: 350,
                            modal: true,
                            resizable: false,
                            draggable: true,
                            close: function (event, ui) { $('html').find('#dialog').remove(); },
                            buttons:
                            {
                                'Yes': function () {
                                    $("#ctl00_MainContent_btnConfirmation").click();
                                    $(this).dialog('close');
                                },
                                'No': function () {
                                    $(this).dialog('close');
                                    $('html').find("#dialog").remove();
                                    return false;
                                }
                            }
                        });
            }

            return dialogConfirmed;
            $(".ui-widget-overlay").height($("body").height());

        }
      
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
       
        document.onkeyup = function (e) {
            if (e.ctrlKey && e.shiftKey && e.key == "E") {
                document.getElementById('<%= btnExportToExcel.ClientID %>').click();
            } else if (e.ctrlKey && e.shiftKey && e.key == "A") {
                document.getElementById('<%= btnAddOpt.ClientID %>').click();
            }
        }
    </script>

    <asp:Button ID="btnFind" runat="server" Width="80px" Text="Find (F3)" CssClass="btn" Visible="False"></asp:Button>
    <asp:HiddenField ID="txtCurrency" runat="server"></asp:HiddenField>

     <asp:HiddenField ID="hdnSaveRowIndex" runat ="server" />
    <asp:Button ID="btnConfirmation" runat="server" Width="0" Style="width: 0px; height: 0px; font-size: 0; border: none; display: none;" />
</asp:Content>
