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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxTab" %>

<asp:Content ID="ContentLayout" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />

    <style type="text/css">
        .Background1 {
            /*background-color: Black;*/
            /*filter: alpha(opacity=90);*/
            /*opacity: 0.8;*/
        }

        .Popup1 {
            background-color: #FFFFFF;
            border-width: 1px;
            border-style: solid;
            border-color: #ccc;
            padding-top: 10px;
            padding-left: 10px;
            width: 400px;
            height: 350px;
            /*z-index: auto;*/
        }

        .Popup2 {
            background-color: #FFFFFF;
            border-width: 1px;
            border-style: solid;
            border-color: #ccc;
            /*padding-top: 10px;*/
            /*padding-left: 10px;*/
            /*width: 400px;*/
            width: 800px;
            /*height: 350px;*/
            height: 450px;
            /*z-index: auto;*/
        }

        .Popup3 {
            background-color: #FFFFFF;
            border-width: 1px;
            border-style: solid;
            border-color: #ccc;
            /*padding-top: 10px;*/
            /*padding-left: 10px;*/
            /*width: 400px;*/
            width: 1100px;
            /*height: 350px;*/
            height: 400px;
            /*z-index: auto;*/
        }

        .lbl1 {
            font-size: 16px;
            font-style: italic;
            font-weight: bold;
        }

        .buttons {
            width: 70px;
        }

        .VertTop {
            vertical-align: top;
        }

        .labelsTDOne {
            width: 150px !important; /*Commented by SashaP on 19-01-2021 to increase width of td in table for fitting Enable Authentication checkbox */
            /*width: 190px !important;    Added by SashaP on 19-01-2021 to increase width of td in table for fitting Enable Authentication checkbox*/
        }

        .TXTsDDLs {
            /*width: 226px !important;*/
            width: 230px !important;
        }

        .ddlVWWidth {
            width: 180px !important;
        }

        .TXTsDDLsTDTwo {
            /*width: 230px;*/ /*240*/
            width: 233px;
        }

        .TXTsDDLsTDTwoRight {
            width: 230px; /*240*/
        }


        .labelsTDThree {
            width: 150px;
        }

        .Filterpad {
            padding: 5px;
            margin: 2px 0px 2px 0px;
        }

        .Filterpad2 {
            padding: 5px;
            margin: 5px 0px 2px 2px;
        }

        .Filterpad3 {
            padding: 5px;
            margin: 5px 0px 0px 2px;
        }

        /*.Filter1 {
            background-color: #FFF;
            border: solid 0px #D5D5D5;
            color: black;
            font-size: 12px;
        }*/

        .txtLong {
            width: 550px;
        }

        .txtLong1 {
            width: 350px;
        }

        .labelsShortTD {
            width: 100px;
        }

        .Fieldset {
            border: solid 1px #DDDDDD;
        }

        .ddl, select, htmlselect {
            font: normal 11px verdana !important;
            border: solid 1px #DDDDDD;
            padding: 3px;
            width: 230px !important;
        }

        .ddl2, select, htmlselect {
            font: normal 11px verdana !important;
            border: solid 1px #DDDDDD;
            padding: 3px;
            width: 384px !important;
        }

        .Popup1 {
            /*z-index: 6001 !important;*/
        }

        .Background1 {
            /*z-index: 6000 !important;*/
        }

        .WrapNoSpace {
            word-break: break-all;
        }


        .lblTDOne {
            width: 94px;
        }

        .lblTDTwo {
            width: 180px;
        }

        .lblTDThree {
            width: 35px;
        }

        .txtdesc {
            width: 600px;
        }

        .lblTDLabel {
            width: 200px;
        }

        .lblTDtxtDDL {
            width: 250px;
        }

        /*Start Added on 11-Mar-2021 for UBP*/
        .btn_padding {
            padding-right: 10px !important;
            padding-top: 5px !important;
        }
        /*End Added on 11-Mar-2021 for UBP*/

        /* Start: Saurabh Kulkarni & Pranav Deshpande | 19-May-2021 | for Template Design Popup */
        .popup-container {
            display: flex;
            flex-direction: column;
            width: calc(100% - 20px);
            /*height: calc(100% - 20px);*/
            height: calc(100% - 55px);
            margin: 10px;
        }

        .header-wrapper {
            display: flex;
            justify-content: flex-end;
        }

        .content-wrapper {
            display: grid;
            /*grid-template-columns: 2fr 3fr;*/
            grid-template-columns: 1fr;
            grid-gap: 20px;
            height: 100%;
            width: calc(100% - 5px);
        }

        .output-container {
            display: grid;
            /*grid-template-rows: auto 1fr auto auto;*/
            grid-template-rows: auto 1fr;
            width: calc(100% - 10px);
            height: 100%;
            grid-gap: 10px;
            padding: 10px;
        }

        .source-file-wrapper {
            display: flex;
            align-items: center;
            grid-gap: 10px;
        }

        .buttons-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            grid-gap: 20px;
            flex-direction: row;
            padding: 10px;
        }

        .input-container {
            display: grid;
            grid-template-rows: repeat(4, auto) 1fr;
            grid-gap: 10px;
            padding: 5px;
            border: 1px solid black;
        }

        .designPopuptxtWidth {
            width: 100%;
        }

        .design-form {
            display: grid;
            grid-template-columns: 20% 80%;
            width: calc(100% - 20px);
            grid-gap: 10px;
        }

        .tag-details-wrapper {
            display: flex;
            flex-wrap: wrap;
        }

        .tag-details-wrapper {
            display: grid;
            grid-template-rows: repeat(5, 30px);
            grid-template-columns: repeat(3, 1fr);
            grid-gap: 5px;
        }

        .file-wrapper-form {
            display: grid;
            grid-template-columns: 40% 60%;
        }

        .lbl-vertical-align {
            display: flex;
            align-items: center;
        }

        .tag-list-container {
            overflow: hidden;
            position: relative;
            height: 100%;
        }

            .tag-list-container > div, .tag-list-container table {
                width: 100%;
            }

        .checkbox-form {
            display: grid;
            grid-template-columns: 20% 80%;
            grid-gap: 5px;
        }

        .output-file-container {
            overflow: hidden;
            /*max-height: 455px;*/
            height: 500px;
        }

        .output-file-wrapper {
            overflow: auto;
            height: 100%;
        }

        .editableXMLDiv {
            width: calc(100% - 12px);
            height: calc(100% - 12px);
            overflow: auto;
            padding: 5px;
            resize: none;
            -moz-appearance: textfield-multiline;
            -webkit-appearance: textarea;
            border: 1px solid #ccc;
        }

        .templateDesignTable {
            width: 100%;
            max-height: 100%;
            border: none;
            vertical-align: top;
            overflow-y: auto;
            border-collapse: collapse;
            border-spacing: 0px;
        }

            .templateDesignTable tr {
                vertical-align: top;
            }

        .templateDesignInput {
            text-align: center;
            margin: 0px;
        }

        /* End: Saurabh Kulkarni & Pranav Deshpande | 19-May-2021 | for Template Design Popup */
        /*START : Added by Pranav D 09-Sep-2021 stop remove inline styling*/
        .lnkClass {
            display: grid;
            grid-template-rows: auto auto;
            text-align: center;
            gap: 5px;
        }
        /* END : Added by Pranav D 09-Sep-2021 stop remove inline styling*/
        /*class added by Pranav D 30-Nov-2021*/
        .smartSearchWidth {
            /*width: 477px;*/
            width: 180px;
        }

        .gridSwitch {
            grid-column: 1 / span 2;
            grid-row: 1;
        }

        .gridTDWidth {
            width: 230px;
        }


        /*class added by Pranav D 30-Nov-2021*/
    </style>

    <%--<asp:Textbox  ID="txtField2D1" runat="server" TextMode="Password"  MaxLength="100" Enabled="false" Width="148px"></asp:Textbox>--%>

    <%--<Added by Pranav D : 23-Apr-2021 : UI Changes>--%>
    <script type="text/javascript">
        document.addEventListener('input', onExpandableTextareaInput);

        function getAutoHeight() {
            var sourceFilePath = document.getElementById("<%=txtSourceFilePath.ClientID%>");
            var outputFileDirectory = document.getElementById("<%=txtOutputFileDirectory.ClientID%>");
            var archiveFilePath = document.getElementById("<%=txtArchiveFilePath.ClientID%>");
            var txtLogFilePath = document.getElementById("<%=txtLogFilePath.ClientID%>");
            var exportFilePath = document.getElementById("<%=txtField1D2.ClientID%>");
            var importFilePath = document.getElementById("<%=txtField2D2.ClientID%>");
            var importArchivalPath = document.getElementById("<%=txtField3D2.ClientID%>");
            var exportURL = document.getElementById("<%=txtField1D1.ClientID%>");
            var remoteFolder = document.getElementById("<%=txtField4D1.ClientID%>");
            //var wcfURL = document.getElementById("<%=txtURL.ClientID%>");

            //console.log("inside window load function", sourceFilePath, exportFilePath);
            onExpandableTextareaInput({ target: sourceFilePath });
            onExpandableTextareaInput({ target: outputFileDirectory });
            onExpandableTextareaInput({ target: archiveFilePath });
            onExpandableTextareaInput({ target: txtLogFilePath });
            onExpandableTextareaInput({ target: exportFilePath });
            onExpandableTextareaInput({ target: importFilePath });
            onExpandableTextareaInput({ target: importArchivalPath });
            onExpandableTextareaInput({ target: exportURL });
            onExpandableTextareaInput({ target: remoteFolder });
            //onExpandableTextareaInput({ target: wcfURL });
        };

        <%--</Added by Pranav D : 23-Apr-2021 : UI Changes>--%>

        //Start Added on 11-Mar-2021 for UBP
        document.onkeyup = function (e) {
            if (e.ctrlKey && e.key == "r") {
                document.getElementById('<%= btnLoad.ClientID %>').click();
            } else if (e.ctrlKey && e.shiftKey && e.key == "E") {
                document.getElementById('<%= btnExport.ClientID %>').click();
            }
        }
        //End Added on 11-Mar-2021 for UBP
        //
        function ShowHideAdditionalCondition() {
            try {
                var tbl = document.getElementById("tblAdditionalCondition");
                var linkbtn = document.getElementById("lnkShowHideAddon");
                var exportchannel = document.getElementById('<%=ddlExportChannelType.ClientID%>');
                var pnlAdditionalSetup = document.getElementById('<%=PnlAdditionalSetup.ClientID%>');
                var tbl2 = document.getElementById("tblAPIResponseInput");
                var condition2 = document.getElementById("pnlCondition2");
                if (exportchannel.value == "HTTP POST") {

                    if (linkbtn.innerText == "Show") {
                        /*tbl2.style.display = "none";*/
                        pnlAdditionalSetup.style.display = "none";
                    }
                    else {
                        /*tbl2.style.display = "block";*/
                        pnlAdditionalSetup.style.display = "block";
                    }
                }
                else {
                    /*tbl2.style.display = "none";*/
                    pnlAdditionalSetup.style.display = "none";
                }

                if (linkbtn.innerText == "Show") {
                    linkbtn.innerText = "Hide";
                    tbl.style.display = "block";
                }
                else {
                    linkbtn.innerText = "Show";
                    tbl.style.display = "none";
                }

            }
            catch (err) {
                alert(err);
            }

        }


        function Confirm() {
            var confirm_value = document.createElement("INPUT");
            confirm_value.type = "hidden";
            confirm_value.name = "confirm_value";
            if (confirm("Do you really want to delete data?")) {
                confirm_value.value = "Yes";
            } else {
                confirm_value.value = "No";
            }
            document.forms[0].appendChild(confirm_value);
        }




        function ValidateFields() {
            //handled spaces , number validations for port 
            // 
            var ddlExport = document.getElementById('<%=ddlExportChannelType.ClientID%>');
            if (ddlExport.options[ddlExport.selectedIndex].value == "E-MAIL") {

                //Space is not allowed
                if (event.target.id == '<%=txtField3D1.ClientID %>') {
                    if (event.keyCode == 32) {
                        event.returnValue = false;
                        return false;
                    }
                    if (event.keyCode < 48 || event.keyCode > 57) {
                        return false;
                    }
                }
                else {
                    if (event.keyCode == 32) {
                        event.returnValue = false;
                        return false;
                    }
                }
            }


            else if (ddlExport.options[ddlExport.selectedIndex].value == "FTP" || ddlExport.options[ddlExport.selectedIndex].value == "SFTP") {
                //|| ddlExport.options[ddlExport.selectedIndex].value == "MQSERIES" || ddlExport.options[ddlExport.selectedIndex].value == "SOLACE API" || ddlExport.options[ddlExport.selectedIndex].value == "SOLACE SSL API" || ddlExport.options[ddlExport.selectedIndex].value == "SONICMQ") {
                if (event.target.id == '<%=txtField2D1.ClientID%>') {
                    if (event.keyCode < 48 || event.keyCode > 57) {
                        return false;
                    }
                }
                else {
                    if (event.keyCode == 32) {
                        event.returnValue = false;
                        return false;
                    }
                }
            }
            else if (ddlExport.options[ddlExport.selectedIndex].value == "MQSERIES") {
                if (event.target.id == '<%=txtField7D1.ClientID%>') {
                    if (event.keyCode < 48 || event.keyCode > 57) {
                        return false;
                    }
                }
                else {
                    if (event.keyCode == 32) {
                        event.returnValue = false;
                        return false;
                    }
                }
            }
            // || ddlExport.options[ddlExport.selectedIndex].value == "SOLACE API" || ddlExport.options[ddlExport.selectedIndex].value == "SOLACE SSL API" || ddlExport.options[ddlExport.selectedIndex].value == "SONICMQ")
            else if (ddlExport.options[ddlExport.selectedIndex].value == "SOLACE API" || ddlExport.options[ddlExport.selectedIndex].value == "SOLACE SSL API") {
                if (event.target.id == '<%=txtField2D1.ClientID%>') {
                    if (event.keyCode < 48 || event.keyCode > 57) {
                        return false;
                    }
                }
                else {
                    if (event.keyCode == 32) {
                        event.returnValue = false;
                        return false;
                    }
                }
            }
            else if (ddlExport.options[ddlExport.selectedIndex].value == "SonicMQ") {
                if (event.target.id == '<%=txtField6D1.ClientID%>') {
                    if (event.keyCode < 48 || event.keyCode > 57) {
                        return false;
                    }
                }
                else {
                    if (event.keyCode == 32) {
                        event.returnValue = false;
                        return false;
                    }
                }
            }
            /*< START : JIRA No INT1FIN47 - 413 Added by Pranav D 28 - Feb - 2022  to allow only numeric values>*/
            else if (ddlExport.options[ddlExport.selectedIndex].value == "HTTP POST") {
                if (event.target.id == '<%=txtNoOfRetrySP.ClientID%>') {
                    if (event.keyCode < 48 || event.keyCode > 57) {
                        return false;
                    }
                }
                else {
                    if (event.keyCode == 32) {
                        event.returnValue = false;
                        return false;
                    }
                }
            }
            /*< END : JIRA No INT1FIN47 - 413 Added by Pranav D 28 - Feb - 2022  to allow only numeric values>*/
        }

        <%--Added by SashaP on 05-01-2021|| For All Funds Authentication Type Popup as Asked by Arshin--%>
        function ShowAuthenticationType(AuthType, AuthID) {


           <%-- alert("Calling Authentication Type");--%>
        <%--  window.open("INTMAP_AuthenticationType.aspx?AuthenticationType=" + AuthenticationType + "&Username=" + Username + "&Password=" + Password + "&Master_Popup=POPUP", "_blank", "", false);--%>
            window.open('INTMAP_AuthenticationType.aspx?MODE=POPUP&AuthID=' + AuthID + '&AuthType=' + AuthType + '&Master_Popup=POPUP', 'ModalPopUp', 'toolbar=no,left=600,top=500,status=1,scrollbars=1,resizable=1,width=1000,height=500');



        }

        <%--END::SashaP||05-01-2021--%>

        <%--Added by SashaP on 18-01-2021|| For All Funds Authentication Type Popup as Asked by Arshin--%>

        function ShowAuthTypeMaster() {
            window.open('INTMAP_AuthenticationType.aspx?MODE=MASTER&Master_Popup=POPUP', 'ModalPopUp', 'toolbar=no,left=600,top=500,status=1,scrollbars=1,resizable=1,width=1000,height=500');

        }


        <%--END::SashaP||18-01-2021--%>


        <%--START::Commented by SashaP on 21-01-2021 for All Funds as asked by ArshinS--%>
        <%--  function MapAuthIDinINTMAP(AuthType, AuthName, AuthID) {
            document.getElementById('<%=hdnSetFromMapping.ClientID%>').value = "true";
            document.getElementById('<%=ddlAuthType.ClientID%>').value = AuthType;
            document.getElementById('<%=hdnAuthSchemeID.ClientID%>').value = AuthID;
            document.getElementById('<%=txtAuthScheme.ClientID%>').innerText = AuthName;
            document.getElementById('<%=txtAuthScheme.ClientID%>').value = AuthName;
           
        }--%>
        <%--END::SashaP||21-01-2021--%>

        function validateSessionProperties() {
            if (event.target.id == '<%=txtConnectRetries.ClientID%>' || event.target.id == '<%=txtNumberOfRetry.ClientID%>' ||
                event.target.id == '<%=txtReconnectRetries.ClientID%>' || event.target.id == '<%=txtReconnectRetriesWait.ClientID%>' ||
                event.target.id == '<%=txtResponseTimeOut.ClientID%>') {
                var charCode = (evt.which) ? evt.which : evt.keyCode;
                if (charCode > 31 && (charCode < 48 || charCode > 57) || charCode == 44)
                    return false;
                return true;
            }
        }
        /*Added by Pranav D 21-Apr-2021 to resolve lblError stickyness after Download link button click */
        function checkDownloadPath() {
            $("#<%=lblError.ClientID%>")[0].innerText = "";
        }



        function getScrollHeight(elm) {
            var savedValue = elm.value
            elm.value = ''
            elm._baseScrollHeight = elm.scrollHeight
            elm.value = savedValue
        }

        function onExpandableTextareaInput({ target: elm }) {
            if (!elm) {
                return;
            }
            //console.log("inside function..", elm);
            elm.style.resize = "none";  // Added by Pranav D 24-May-2021 to restrict manual dragging of multi line textbox
            if (!elm.classList.contains('autoExpand') || !elm.nodeName == 'TEXTAREA') return

            var minRows = elm.getAttribute('data-min-rows') | 0, rows;
            !elm._baseScrollHeight && getScrollHeight(elm)

            elm.rows = minRows
            rows = Math.ceil((elm.scrollHeight - elm._baseScrollHeight) / 16)
            elm.rows = minRows + rows

        }

        /*<Changes done by Pranav D 31-Aug-2021 Insert Into script  download> */

        const b64toBlob = (b64Data, contentType = '', sliceSize = 512) => {
            const byteCharacters = atob(b64Data);
            const byteArrays = [];

            for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
                const slice = byteCharacters.slice(offset, offset + sliceSize);

                const byteNumbers = new Array(slice.length);
                for (let i = 0; i < slice.length; i++) {
                    byteNumbers[i] = slice.charCodeAt(i);
                }

                const byteArray = new Uint8Array(byteNumbers);
                byteArrays.push(byteArray);
            }

            const blob = new Blob(byteArrays, {
                type: contentType
            });
            return blob;
        }

        function downloadFiles(filesData) {
            console.log(filesData);
            for (var i = 0; i < filesData.length; i++) {
                var a = window.document.createElement('a');
                const blob = b64toBlob(filesData[i]["data"], "application/octet-stream");
                a.href = window.URL.createObjectURL(blob, {
                    type: 'application/octet-stream'
                });
                a.download = filesData[i]["filename"];
                document.body.appendChild(a)
                a.click();
                document.body.removeChild(a);
            }
        }
        /*</Changes done by Pranav D 31-Aug-2021 Insert Into script  download> */

        //function gridAccordion() {
        //    let state = sessionStorage.getItem("gridState");
        //    var accordionLeft = document.getElementsByClassName("VertTop");
        //    var accordionIcon = document.getElementById("imgAccordion");
        //    var grid = document.getElementById("gdvINTMAP");

        //    if (state == "small") {
        //        accordionLeft[1].classList.add("gridSwitch");
        //    } else {
        //        accordionLeft[1].classList.remove("gridSwitch");
        //    }

        //    accordionIcon.innerText = state == "small" ? ">>" : "<<";
        //    grid.style.width = state == "large" ? "900px" : "1600px";
        //    state = state == "large" ? "small" : "large";
        //    sessionStorage.setItem("gridState", state);
        //}

        //function retainGridState() {
        //    let state = sessionStorage.getItem("gridState");
        //    state = state == "large" ? "small" : "large";
        //    sessionStorage.setItem("gridState", state);
        //    gridAccordion();
        //}

        //$(document).ready(function () {
        //    let state = sessionStorage.getItem("gridState");
        //    if (state) {
        //        gridAccordion();
        //    } else {
        //        sessionStorage.setItem("gridState", "small");
        //    }
        //});
        //Sys.WebForms.PageRequestManager.getInstance().add_endRequest(retainGridState);


    </script>



    <%-- <asp:TextBox ID="txtField5D1" TextMode="Password" runat="server" MaxLength="100" Enabled="false" Width="148px"></asp:TextBox>--%>    <%-- </td>
                                 <td class="Width400" style="width: 177px">--%>




    <style>
        #TemplateMasterPage {
            margin-top: -56px;
        }
    </style>


    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>


    <%--  </td>
                                 <td class="Width250" style="width: 235px">--%>


    <asp:UpdatePanel ID="UpdatePanelCP" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
        <%--UpdateMode="Always"--%>
        <ContentTemplate>

            <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelCP" DisplayAfter="0">
                <ProgressTemplate>
                    <div class="divLoading" style="margin-top: 50px">
                        <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp; </span>
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>

            <table>
                <tr>
                    <td>

                        <table>
                            <tr>
                                <td class="btn_padding">
                                    <div>
                                        <asp:Label ID="lblError" runat="server" Visible="true" CssClass="lblerror"></asp:Label>
                                        <asp:Label ID="lblsucces" runat="server" Visible="true" CssClass="lblSuccess"></asp:Label>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td class="btn_padding">
                                    <asp:Button ID="btnAdd" Text="Add" runat="server" CssClass="btn buttons" />&nbsp;
                                </td>
                                <td class="btn_padding">
                                    <asp:Button ID="btnEdit" Text="Edit" runat="server" CssClass="btn buttons" />&nbsp;
                                </td>
                                <td class="btn_padding">
                                    <asp:Button ID="btnSave" Text="Save" runat="server" CssClass="btn buttons" />&nbsp;
                                </td>
                                <td class="btn_padding">
                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CssClass="btn buttons" />&nbsp;
                                </td>
                                <td class="btn_padding">
                                    <asp:Button ID="btnDelete" Text="Delete" runat="server" CssClass="btn buttons" OnClientClick="Confirm();" />&nbsp;
                                </td>
                                <td class="btn_padding">
                                    <asp:Button ID="btnTemplateMaster" Text="Template Master" runat="server" CssClass="btn" Enabled="false" />&nbsp;
                                </td>
                                <td class="btn_padding">
                                    <asp:Button ID="btnEventMaster" Text="Event Master" runat="server" CssClass="btn" Enabled="false" />&nbsp;
                                </td>
                                <td class="btn_padding">
                                    <asp:Button ID="btnAuthMaster" Text="Auth Type Master" runat="server" CssClass="btn" Enabled="false" />&nbsp; <%-- Added by SashaP on 11-01-21||For All Funds as Asked by Arshin--%>
                                </td>
                                <%--Added by Pranav D 1-9-2021 INTMAP dropdown combination to generate insert into sql script  JIRA ID :- JIRA ID :- FPTDCINT-211 --%>
                                <td class="btn_padding">
                                    <asp:Button ID="btnGenerateScript" Text="Generate Script" runat="server" CssClass="btn" Enabled="true" />&nbsp;
                                </td>
                                <%--/Added by Pranav D 1-9-2021 INTMAP dropdown combination to generate insert into sql script  JIRA ID :- JIRA ID :- FPTDCINT-211 --%>
                                <td class="btn_padding">
                                    <asp:HiddenField ID="hdnAuthTypeFromPopup" runat="server" />
                                    <asp:HiddenField ID="hdnMode" runat="server" />

                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="display: grid; grid-template-columns: 47% 1fr; grid-template-rows: 1fr">
                    <%--style added by Pranav D 30-Nov-2021 Accordion Effect--%>
                    <td>


                        <table>
                            <tr>
                                <td class="VertTop">
                                    <table class="">
                                        <tr>
                                            <td>
                                                <asp:Panel runat="server" ID="Panel1" CssClass="Filter Filterpad2" GroupingText="">
                                                    <table class="Filter1" id="tblEntityProduct">
                                                        <tr>
                                                            <td class="labelsTDOne" style="padding-left: 5px">
                                                                <asp:Label ID="lblEntityName" runat="server" Text="Entity Name" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Width="50px"></asp:DropDownList>
                                                            </td>

                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblProductName" Text="Product Name" runat="server" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:DropDownList ID="ddlProduct" runat="server" CssClass="ddl" AutoPostBack="true" Width="50px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne" style="padding-left: 5px">
                                                                <asp:Label ID="lblTemplateName" Text="Template Name" runat="server" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlTemplate" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="labelsTDThree" visible="false">
                                                                <asp:Label ID="lblUCPTemplateName" Text="UCP Template Name" runat="server" CssClass="lbl" Visible="true" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlUCPTemplate" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="true" Visible="true" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne" style="padding-left: 5px">
                                                                <asp:Label ID="lblExportTradeIDFormat" Text="Trade ID Format" runat="server" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <%--Added width 230 px on 11-Mar-2021--%>
                                                                <asp:TextBox ID="txtExportIDFormat" runat="server" Style="width: 230px !important;" Enabled="false" MaxLength="50" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                            </td>

                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblEventName" Text="Event Name" runat="server" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:DropDownList ID="ddlEvent" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne" style="padding-left: 5px">
                                                                <asp:Label ID="lblDescription" Text="Description" runat="server" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight" colspan="4">
                                                                <%--Added width changed from 620 to 618 px on 11-Mar-2021--%>
                                                                <asp:TextBox ID="txtDescription" runat="server" Enabled="false" MaxLength="200" CssClass="txt txtdesc" Width="618px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Panel runat="server" ID="pnlExportChannelType" CssClass="Filter Filterpad2" GroupingText="">

                                                    <table class="Filter1" id="tblExportChannelType" title="Export channel TYpe">
                                                        <tr>
                                                            <td class="labelsTDOne" style="padding-left: 5px">
                                                                <asp:Label ID="lblExportChannel" runat="server" Text="Export Channel" CssClass="lbl" Width="150px"> </asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlExportChannelType" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false" Width="250px">
                                                                    <asp:ListItem Text="E-MAIL" Value="E-MAIL"></asp:ListItem>
                                                                    <asp:ListItem Text="FTP" Value="FTP"></asp:ListItem>
                                                                    <asp:ListItem Text="HardDrive" Value="HardDrive"></asp:ListItem>
                                                                    <asp:ListItem Text="HTTP POST" Value="HTTP POST"></asp:ListItem>
                                                                    <asp:ListItem Text="MQSERIES" Value="MQSERIES"></asp:ListItem>
                                                                    <asp:ListItem Text="SFTP" Value="SFTP"></asp:ListItem>
                                                                    <asp:ListItem Text="SOLACE API" Value="SOLACE API"></asp:ListItem>
                                                                    <asp:ListItem Text="SOLACE SSL API" Value="SOLACE SSL API"></asp:ListItem>
                                                                    <asp:ListItem Text="SonicMQ" Value="SonicMQ"></asp:ListItem>
                                                                    <asp:ListItem Text="WEBMETHODS" Value="WEBMETHODS"></asp:ListItem>
                                                                    <asp:ListItem Text="ACTIVEMQ" Value="ActiveMQ"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>

                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblInterfaceMessageType" runat="server" Text="Message Type" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:DropDownList ID="ddlInterfaceMessageType" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false" Width="250px">
                                                                    <asp:ListItem Text="Free Text"></asp:ListItem>
                                                                    <asp:ListItem Text="Fixed Length"></asp:ListItem>

                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Panel runat="server" ID="pnlExportChannelDetails2" CssClass="Filter2" GroupingText="Export Channel Details">
                                                    <table class="Filter2" id="tblExportChannelDetails2">
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField1D2" runat="server" Text="Export File Path" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <%--<asp:TextBox ID="txtField1D2" runat="server" MaxLength="255" Enabled="false" CssClass="txtLong"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtField1D2" runat="server" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt txtLong autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <%-- <asp:Button ID="btnField1D2" Text="Browse" runat="server" CssClass="btn" Enabled="false" Width="62px" />--%>
                                                                <asp:Button ID="btnBrowse1" runat="server" CssClass="btn" Enabled="false" Width="62px" Style="padding-bottom: 3px" Text="Browse"></asp:Button>

                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField2D2" runat="server" Text="Import File Path" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <%--<asp:TextBox ID="txtField2D2" runat="server" MaxLength="255" Enabled="false" CssClass="txtLong"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtField2D2" runat="server" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt txtLong autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnField2D2" Text="Browse" runat="server" CssClass="btn" Enabled="false" Width="62px" Style="padding-bottom: 3px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField3D2" runat="server" Text="Import File Archive Path" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <%--<asp:TextBox ID="txtField3D2" runat="server" MaxLength="255" Enabled="false" CssClass="txtLong"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtField3D2" runat="server" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt txtLong autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnField3D2" Text="Browse" runat="server" CssClass="btn" Enabled="false" Width="62px" Style="padding-bottom: 3px" />
                                                            </td>
                                                        </tr>

                                                    </table>
                                                </asp:Panel>

                                                <asp:Panel runat="server" ID="pnlExportChannelDetails1" GroupingText="Export Channel Details">
                                                    <table class="" id="tblExportChannelDetails1">
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField1D1" runat="server" Text="lblField1D1" CssClass="lbl" Width="135px" Style="display: initial"></asp:Label>
                                                                <asp:Label ID="lblMandatory1D1" runat="server" Text="*" Visible="false" ForeColor="Red" />
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <%--<asp:TextBox ID="txtField1D1" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtField1D1" runat="server" MaxLength="2047" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt TXTsDDLs autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblField2D1" runat="server" Text="lblField2D1" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <%--<asp:Textbox  ID="txtField2D1" runat="server" TextMode="Password"  MaxLength="100" Enabled="false" Width="148px"></asp:Textbox>--%>
                                                                <asp:TextBox ID="txtField2D1" runat="server" MaxLength="49" onkeypress="return ValidateFields()" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <%--Added by Pranav D 24-May-2021 to add Failover Server Name and Failover Port No--%>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblFailoverServerName" runat="server" Text="lblFailoverServerName" CssClass="lbl" Width="135px" Style="display: initial"></asp:Label>
                                                                <asp:Label ID="lblMandatory7d1" runat="server" Text="*" Visible="false" ForeColor="Red" />
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <%--<asp:TextBox ID="txtField1D1" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtFailoverServerName" runat="server" MaxLength="2047" Enabled="false" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblFailoverServerPortNo" runat="server" Text="lblFailoverServerPortNo" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <%--<asp:Textbox  ID="txtField2D1" runat="server" TextMode="Password"  MaxLength="100" Enabled="false" Width="148px"></asp:Textbox>--%>
                                                                <asp:TextBox ID="txtFailoverServerPortNo" runat="server" MaxLength="49" onkeypress="return ValidateFields()" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField3D1" runat="server" Text="lblField3D1" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:TextBox ID="txtField3D1" runat="server" MaxLength="255" onkeypress="return ValidateFields()" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblField4D1" runat="server" Text="lblField4D1" CssClass="lbl" Width="150px" Style="display: initial"></asp:Label>
                                                                <asp:Label ID="lblMandatory4D1" runat="server" Text="*" Visible="false" ForeColor="Red" />
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <%--<asp:TextBox ID="txtField4D1" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtField4D1" runat="server" MaxLength="49" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt TXTsDDLs autoExpand"></asp:TextBox>
                                                            </td>
                                                        </tr>



                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField5D1" runat="server" Text="lblField5D1" CssClass="lbl" Width="150px" Style="display: initial"></asp:Label>
                                                                <asp:Label ID="lblMandatory5D1" runat="server" Text="*" Visible="false" ForeColor="Red" />
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <%-- <asp:TextBox ID="txtField5D1" TextMode="Password" runat="server" MaxLength="100" Enabled="false" Width="148px"></asp:TextBox>--%>
                                                                <%--<asp:TextBox ID="txtField5D1" runat="server" MaxLength="255" Enabled="false" onkeypress="return ValidateFields()" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtField5D1" runat="server" MaxLength="255" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt TXTsDDLs autoExpand" Width="250px" onkeypress="return ValidateFields()"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblField6D1" runat="server" Text="lblField6D1" CssClass="lbl" Width="150px" Style="display: initial"></asp:Label>
                                                                <asp:Label ID="lblMandatory6D1" runat="server" Text="*" Visible="false" ForeColor="Red" />
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <%--<asp:TextBox ID="txtField6D1" runat="server" MaxLength="255" onkeypress="return ValidateFields()" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>--%>
                                                                <%--<asp:TextBox ID="txtField6D1" runat="server" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1"  CssClass="txt TXTsDDLs autoExpand" onkeypress="return ValidateFields()"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtField6D1" MaxLength="255" runat="server" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt TXTsDDLs autoExpand" Width="250px" onkeypress="return ValidateFields()"></asp:TextBox>
                                                            </td>
                                                        </tr>

                                                        <%-- Added By SashaP on 04-01-2021||For All Funds Additional Setup as Asked by Arshin--%>
                                                        <tr>

                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblAuthType" runat="server" Text="Authentication Type" CssClass="lbl" Width="120px"></asp:Label>
                                                                <asp:CheckBox ID="chkEnableAuth" CssClass="checkbox" runat="server" AutoPostBack="true" />
                                                                <%-- Updated by SashaP on 18-01-2021 for Authentication Fields Visibility as asked by ArshinS --%>
                                                                
                                                            </td>

                                                            <td class="TXTsDDLsTDTwo">

                                                                <asp:DropDownList ID="ddlAuthType" AutoPostBack="true" runat="server" CssClass="ddl TXTsDDLs" Visible="false" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>

                                                            <%-- Added By SashaP on 11-01-2021||For All Funds Authentication as Asked by Arshin--%>

                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblAuthenticationScheme" runat="server" Text="Authentication Scheme" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>

                                                            <td class="TXTsDDLsTDTwoRight">


                                                                <asp:TextBox ID="txtAuthScheme" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px" Visible="false"></asp:TextBox>
                                                                <%-- Added By SashaP on 20-01-2021||For All Funds Authentication Scheme Dropdown as Asked by Arshin--%>

                                                                <asp:DropDownList ID="ddlAuthenticationScheme" AutoPostBack="true" runat="server" CssClass="ddl TXTsDDLs" Width="250px">
                                                                </asp:DropDownList>

                                                                <%--END::SashaP||20-01-2021 --%>
                                                                <asp:HiddenField ID="hdnAuthSchemeID" Value="" runat="server" />
                                                                <asp:HiddenField ID="hdnSetFromMapping" Value="" runat="server" />
                                                            </td>

                                                            <%--END::SashaP||11-01-2021 --%>

                                                            <%-- Added By SashaP on 05-01-2021||For All Funds Additional Setup as Asked by Arshin--%>
                                                            <td>
                                                                <asp:LinkButton ID="lnkoauth" Text="View Details" runat="server"></asp:LinkButton>
                                                                <%-- Updated By SashaP on 11-01-2021||For All Funds Authentication as Asked by Arshin--%>

                                                            </td>
                                                            <%--END::SashaP||05-01-2021 --%>
                                                        </tr>
                                                        <%-- END:: SashaP|| 04-01-2021 --%>

                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField7D1" runat="server" Visible="false" Text="lblField7D1" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:TextBox ID="txtField7D1" runat="server" MaxLength="255" TextMode="MultiLine" Enabled="false" onkeypress="return ValidateFields()" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                                <%-- </td>
                                 <td class="Width400" style="width: 177px">--%>
                                                                <asp:DropDownList ID="ddlField7D1" runat="server" CssClass="ddl TXTsDDLs" Visible="false" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblField8D1" runat="server" Text="lblField8D1" CssClass="lbl" Width="135px" Visible="false" Style="display: initial"></asp:Label>
                                                                <asp:Label ID="lblMandatory8D1" runat="server" Text="*" Visible="false" ForeColor="Red" />
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:TextBox ID="txtField8D1" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                                <%--  </td>
                                 <td class="Width250" style="width: 235px">--%>
                                                                <%--Added on 11-Mar-2021 , added 226px width--%>
                                                                <asp:DropDownList ID="ddlField8D1" Style="width: 230px !important;" runat="server" CssClass="ddl TXTsDDLs" Visible="false" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblField9D1" runat="server" Text="lblField9D1" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:TextBox ID="txtField9D1" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                                <asp:DropDownList ID="ddlField11D1" runat="server" CssClass="ddl TXTsDDLs" Visible="false" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblField10D1" runat="server" Text="lblField10D1" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:TextBox ID="txtField10D1" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                                <asp:DropDownList ID="ddlField12D1" runat="server" CssClass="ddl TXTsDDLs" Visible="false">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>

                                                        <%--<START : Changes done by Pranav D 9-May-2022 to show Request Type and SSL certificate path INT1FIN47-504 >--%>

                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblCertPassword" runat="server" Text="lblCertPassword" CssClass="lbl" Width="150px" Visible="false"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:TextBox ID="txtCertPassword" type="password"  runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblReqType" runat="server" Text="lblReqType" CssClass="lbl" Width="150px" Visible="false"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlReqType" runat="server" Enabled="false" CssClass="ddl TXTsDDLs" Visible="false">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>

                                                        <%--<END : Changes done by Pranav D 9-May-2022 to show Request Type and SSL certificate path  INT1FIN47-504>--%>

                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblSSLTrustDirectory" runat="server" Text="SSL Directory" ToolTip="SSL Trust Store Directory" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td colspan="2">
                                                                <asp:TextBox ID="txtSSLDirectory" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs" Width="250px"></asp:TextBox>
                                                                <%--START : Added by Pranav D 12-10-2021 HLBINT-624 for Communication mode ddl UI position shuffle--%>
                                                                <asp:DropDownList ID="ddlField13D1" runat="server" CssClass="ddl TXTsDDLs" Visible="false">
                                                                </asp:DropDownList>
                                                                <%--END : Added by Pranav D 12-10-2021 HLBINT-624 for Communication mode ddl UI position shuffle--%>
                                                                <%-- </td>
                                 <td >
                                      <asp:Button ID="btnBrowseSSLDirectory" Text="" runat="server" CssClass="btn" Enabled="false" Width="46px"  />
                                     <asp:FileUpload ID="fileuploadBrowseSSLDirectory" runat="server" Enabled="false"  />--%>
                                                            </td>

                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:Button ID="btnMQAddInfo" runat="server" CssClass="btn TXTsDDLs" Text="Additional Information" Visible="false" />
                                                            </td>


                                                        </tr>

                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Panel ID="pnlFileDetails" runat="server" GroupingText="File Details">
                                                    <table class="" id="tblFileDetails">
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblFileSentBy" runat="server" Text="File Sent By" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:TextBox ID="txtFileSentBy" runat="server" MaxLength="49" Enabled="false" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblFileSentTo" runat="server" Text="File Sent To" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:TextBox ID="txtFileSentTo" runat="server" MaxLength="49" Enabled="false" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblSourceFileExt" runat="server" Text="Source File Ext." CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:TextBox ID="txtSourceFileExt" runat="server" MaxLength="4" Enabled="false" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblOutputFileExt" runat="server" Text="Output File Ext." CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:TextBox ID="txtOutputFileExt" runat="server" MaxLength="4" Enabled="false" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblLocalFolderName" runat="server" Text="Local Folder Name" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:TextBox ID="txtLocalFolderName" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblLocalFileName" runat="server" Text="Local File Name" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:TextBox ID="txtLocalFileName" runat="server" MaxLength="255" Enabled="false" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Panel runat="server" ID="pnlOtherDetails" GroupingText="Other Details">
                                                    <table class="" id="tblOtherDetails">
                                                        <%--Added by Pranav D 07-Sep-2021 to add chechbox to use freetext as format type--%>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lbl" runat="server" Text="Use Free Format Tag" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkFreeTag" CssClass="checkbox" runat="server" AutoPostBack="false" />
                                                            </td>
                                                        </tr>
                                                        <%--Added by Pranav D 07-Sep-2021 to add chechbox to use freetext as format type--%>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblSourFilePath" runat="server" Text="Source File Path" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <%--<asp:TextBox ID="txtSourceFilePath" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtSourceFilePath" MaxLength="255" runat="server" TextMode="MultiLine" Rows="1" Enabled="false" data-min-rows="1" CssClass="txt txtLong autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td id="lnkDownloadDiv" class="lnkClass">
                                                                <asp:LinkButton ID="lnkDownload" runat="server" Text="Download" OnClientClick="checkDownloadPath()"></asp:LinkButton>
                                                                <%-- Start: Saurabh Kulkarni | 19-May-2021 | Template Design Popup --%>
                                                                <asp:Button ID="btnDesign" runat="server" Text="View" CssClass="btn" Width="62px" Visible="true" />
                                                                <%-- Start: Saurabh Kulkarni | 19-May-2021 | Template Design Popup --%>
                                                                <%--<asp:Button ID="btnShowTemplate" runat="server" Text="Show" CssClass="btn" Enabled="false" Width="62px" Visible="true" OnClick="btnShowTemplate_Click" />--%>
                                                            </td>
                                                        </tr>

                                                        <tr>
                                                            <td colspan="4">
                                                                <table id="tblSyncTemplate" runat="server">
                                                                    <tr>
                                                                        <td class="labelsTDOne">
                                                                            <asp:Label runat="server" Text="Use Db Template" CssClass="lbl"></asp:Label>
                                                                            <asp:CheckBox ID="chkUseDbTemplate" CssClass="checkbox" runat="server" AutoPostBack="true" />
                                                                        </td>

                                                                        <td colspan="2">
                                                                            <asp:Label CssClass="lbl" runat="server" Text="Sync Template"></asp:Label>
                                                                            <asp:CheckBox ID="chkSyncTemplateOnSTPServer" CssClass="checkbox" runat="server" />
                                                                            <asp:FileUpload runat="server" ID="fileupload" AllowMultiple="false" ClientIDMode="Static" Width="85px" />
                                                                            <asp:Label ID="lblLastUpdate" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>


                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblOutputFileDirectory" runat="server" Text="Output File Directory" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <%--<asp:TextBox ID="txtOutputFileDirectory" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtOutputFileDirectory" MaxLength="255" runat="server" TextMode="MultiLine" Rows="1" data-min-rows="1" Enabled="false" CssClass="txt txtLong autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnBrowseOutputDirectory" Text="Browse" runat="server" CssClass="btn" Enabled="false" Width="62px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblArchiveFilePath" runat="server" Text="Archive File Path" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <%--<asp:TextBox ID="txtArchiveFilePath" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtArchiveFilePath" MaxLength="255" runat="server" TextMode="MultiLine" Rows="1" data-min-rows="1" Enabled="false" CssClass="txt txtLong autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnBrowseArchivePath" Text="Browse" runat="server" CssClass="btn" Enabled="false" Width="62px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblLogFilePath" runat="server" Text="Log File Path" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <%--<asp:TextBox ID="txtLogFilePath" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong"></asp:TextBox>--%>
                                                                <asp:TextBox ID="txtLogFilePath" runat="server" MaxLength="255" TextMode="MultiLine" Rows="1" data-min-rows="1" Enabled="false" CssClass="txt txtLong autoExpand"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnBrowseLogFilePath" Text="Browse" runat="server" CssClass="btn" Enabled="false" Width="62px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblAutoExportYN" runat="server" Text="Auto Export Y/N" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlAutoExportYN" runat="server" AutoPostBack="true" Enabled="false" CssClass="ddl">
                                                                    <%-- Vaishnav--%>
                                                                    <asp:ListItem Text="Yes"></asp:ListItem>
                                                                    <asp:ListItem Text="No"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblHeartbeatYN" runat="server" Text="Heartbeat App Y/N" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlHeartBeatApp" runat="server" AutoPostBack="true" Enabled="false" CssClass="ddl">
                                                                    <asp:ListItem Text="Yes"></asp:ListItem>
                                                                    <asp:ListItem Text="No"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblHeartbeatFilePath" runat="server" Text="Heartbeat Source File" CssClass="lbl" Width="150px"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtHeartBeatPath" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong"></asp:TextBox>
                                                                <%--  </td>
                                <td>
                                      <asp:Button ID="btnBrowseHeartbeatFile" Text="..." runat="server" CssClass="btn" Enabled="false" Width="46px"  />
                                </td>
                                <td>
                                  <asp:FileUpload ID="fileuploadBrowseHeartbeatFile" runat="server" Enabled="false"  />--%>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Panel ID="pnlAdvancedCondition" runat="server" GroupingText="Advanced Condition Option">
                                                    <table>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblDebugYN" runat="server" Text="Debug (Yes/No)" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlDebugYN" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false">
                                                                    <asp:ListItem Text="Yes"></asp:ListItem>
                                                                    <asp:ListItem Text="No"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblGUIYN" runat="server" Text="GUI (Yes/No)" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:DropDownList ID="ddlGUIYN" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false">
                                                                    <asp:ListItem Text="Yes"></asp:ListItem>
                                                                    <asp:ListItem Text="No"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblActiveYN" runat="server" Text="Active (Yes/No)" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlActiveYN" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false">
                                                                    <asp:ListItem Text="Yes"></asp:ListItem>
                                                                    <asp:ListItem Text="No"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblConditionYN" runat="server" Text="Condition (Yes/No)" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:DropDownList ID="ddlConditionYN" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false">
                                                                    <asp:ListItem Text="Yes"></asp:ListItem>
                                                                    <asp:ListItem Text="No"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="labelsTDOne">
                                                                <asp:Label ID="lblConditionType1" runat="server" Text="Condition Type" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwo">
                                                                <asp:DropDownList ID="ddlConditionType1" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false">
                                                                    <asp:ListItem Text=""></asp:ListItem>
                                                                    <asp:ListItem Text="ACC_TYPE_LIKE"></asp:ListItem>
                                                                    <asp:ListItem Text="AUTO_MANUAL_QUOTE"></asp:ListItem>
                                                                    <%--Added By Trupti T : 23-Jan-2019--%>
                                                                    <asp:ListItem Text="BOOKING_CENTER"></asp:ListItem>
                                                                    <asp:ListItem Text="DEAL_PRODUCT"></asp:ListItem>
                                                                    <%--Added By Trupti T : 6-Dec-2018--%>
                                                                    <%--Added By Trupti T : 29-Nov-2017--%>
                                                                    <asp:ListItem Text="CURRENCY_LIKE"></asp:ListItem>
                                                                    <asp:ListItem Text="DEAL_FACING_TYPE"></asp:ListItem>
                                                                    <asp:ListItem Text="FAVORITE_CODE_LIKE"></asp:ListItem>
                                                                    <asp:ListItem Text="FAVORITE_CODE_NOT_LIKE"></asp:ListItem>
                                                                    <asp:ListItem Text="MARGIN_TRADE_TYPE"></asp:ListItem>
                                                                    <asp:ListItem Text="SOURCE_SYSTEM"></asp:ListItem>
                                                                    <%--Added By Trupti T : 24-Apr-2018--%>
                                                                    <asp:ListItem Text="TRADE_TYPE"></asp:ListItem>
                                                                    <asp:ListItem Text="ORDER_TYPE"></asp:ListItem>
                                                                    <asp:ListItem Text="ACCOUNT_TYPE"></asp:ListItem>
                                                                    <%-- Added by Pranav D : 25-Nov-2021 JIRA ID : INT1FIN47-258 --%>
                                                                    <asp:ListItem Text="STRATEGY_TYPE"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td class="labelsTDThree">
                                                                <asp:Label ID="lblConditionValue1" runat="server" Text="Condition 1 Value" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td class="TXTsDDLsTDTwoRight">
                                                                <asp:TextBox ID="txtConditionValue1" runat="server" Enabled="false" MaxLength="200" CssClass="txt TXTsDDLs"></asp:TextBox>
                                                                <asp:DropDownList ID="ddlConditionValue1" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Visible="false">
                                                                    <asp:ListItem Text="Yes"></asp:ListItem>
                                                                    <asp:ListItem Text="No"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>

                                                        <tr>
                                                            <td colspan="4"><a id="lnkShowHideAddon" onclick="ShowHideAdditionalCondition()" class="link">Show</a></td>
                                                            <%----%>
                                                        </tr>

                                                        <tr>
                                                            <%--<td>--%>
                                                            <table id="tblAdditionalCondition" style="display: none">

                                                                <tr>
                                                                    <td class="labelsTDOne">
                                                                        <asp:Label ID="lblCondition2YN" runat="server" CssClass="lbl" Text="Condition 2 (Yes/No)"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwo">
                                                                        <asp:DropDownList ID="ddlCondition2YN" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Enabled="false">
                                                                            <asp:ListItem Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <%--<td class="labelsTDThree"></td>
                                                                            <td class="TXTsDDLsTDTwoRight"></td>--%>
                                                                    <td class="labelsTDThree">
                                                                        <asp:Label ID="lblConditionValue2" runat="server" CssClass="lbl" Text="Condition 2 Value"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwoRight">
                                                                        <asp:TextBox ID="txtConditionValue2" runat="server" CssClass="txt TXTsDDLs" Enabled="false" MaxLength="200"></asp:TextBox>
                                                                        <asp:DropDownList ID="ddlConditionValue2" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Visible="false">
                                                                            <asp:ListItem Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>

                                                                </tr>
                                                                <tr>

                                                                    <td class="labelsTDOne">
                                                                        <asp:Label ID="lblConditionType2" runat="server" CssClass="lbl" Text="Condition 2 Type"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwo">
                                                                        <asp:DropDownList ID="ddlConditionType2" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Enabled="false">
                                                                            <asp:ListItem Text=""></asp:ListItem>
                                                                            <%--Added By Trupti T : 29-Nov-2017--%>
                                                                            <asp:ListItem Text="ACC_TYPE_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="AUTO_MANUAL_QUOTE"></asp:ListItem>
                                                                            <%--Added By Trupti T : 23-Jan-2019--%>
                                                                            <asp:ListItem Text="BOOKING_CENTER"></asp:ListItem>
                                                                            <asp:ListItem Text="DEAL_PRODUCT"></asp:ListItem>
                                                                            <%--Added By Trupti T : 6-Dec-2018--%>
                                                                            <asp:ListItem Text="CURRENCY_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="DEAL_FACING_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="FAVORITE_CODE_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="FAVORITE_CODE_NOT_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="MARGIN_TRADE_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="SOURCE_SYSTEM"></asp:ListItem>
                                                                            <%--Added By Trupti T : 24-Apr-2018--%>
                                                                            <asp:ListItem Text="TRADE_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="ORDER_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="ACCOUNT_TYPE"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>

                                                                <tr>
                                                                    <td class="labelsTDOne">
                                                                        <asp:Label ID="lblCondition3YN" runat="server" CssClass="lbl" Text="Condition 3 (Yes/No)"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwo">
                                                                        <asp:DropDownList ID="ddlCondition3YN" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Enabled="false">
                                                                            <asp:ListItem Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <%--<td class="labelsTDThree"></td>
                                                                        <td class="TXTsDDLsTDTwoRight"></td>--%>
                                                                    <td class="labelsTDThree">
                                                                        <asp:Label ID="lblConditionValue3" runat="server" CssClass="lbl" Text="Condition 3 Value"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwoRight">
                                                                        <asp:TextBox ID="txtConditionValue3" runat="server" CssClass="txt TXTsDDLs" Enabled="false" MaxLength="200" Visible="true"></asp:TextBox>
                                                                        <asp:DropDownList ID="ddlConditionValue3" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Visible="false">
                                                                            <asp:ListItem Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>

                                                                </tr>
                                                                <tr>
                                                                    <td class="labelsTDOne">
                                                                        <asp:Label ID="lblConditionType3" runat="server" CssClass="lbl" Text="Condition 3 Type"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwo">
                                                                        <asp:DropDownList ID="ddlConditionType3" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Enabled="false">
                                                                            <asp:ListItem Text=""></asp:ListItem>
                                                                            <asp:ListItem Text="ACC_TYPE_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="AUTO_MANUAL_QUOTE"></asp:ListItem>
                                                                            <%--Added By Trupti T : 23-Jan-2019--%>
                                                                            <asp:ListItem Text="BOOKING_CENTER"></asp:ListItem>
                                                                            <asp:ListItem Text="DEAL_PRODUCT"></asp:ListItem>
                                                                            <%--Added By Trupti T : 6-Dec-2018--%><%--Added By Trupti T : 29-Nov-2017--%>
                                                                            <asp:ListItem Text="CURRENCY_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="DEAL_FACING_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="FAVORITE_CODE_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="FAVORITE_CODE_NOT_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="MARGIN_TRADE_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="SOURCE_SYSTEM"></asp:ListItem>
                                                                            <%--Added By Trupti T : 24-Apr-2018--%>
                                                                            <asp:ListItem Text="TRADE_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="ORDER_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="ACCOUNT_TYPE"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>
                                                                <%--</tr>--%>
                                                                <tr>
                                                                    <td class="labelsTDOne">
                                                                        <asp:Label ID="lblCondition4YN" runat="server" CssClass="lbl" Text="Condition 4 (Yes/No)"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwo">
                                                                        <asp:DropDownList ID="ddlCondition4YN" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Enabled="false">
                                                                            <asp:ListItem Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <%--<td class="labelsTDThree"></td>
                                                            <td class="TXTsDDLsTDTwoRight"></td>--%>
                                                                    <td class="labelsTDThree">
                                                                        <asp:Label ID="lblConditionValue4" runat="server" CssClass="lbl" Text="Condition 4 Value"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwoRight">
                                                                        <asp:TextBox ID="txtConditionValue4" runat="server" CssClass="txt TXTsDDLs" Enabled="false" MaxLength="200"></asp:TextBox>
                                                                        <asp:DropDownList ID="ddlConditionValue4" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Visible="false">
                                                                            <asp:ListItem Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>

                                                                </tr>
                                                                <tr>

                                                                    <td class="labelsTDOne">
                                                                        <asp:Label ID="lblConditionType4" runat="server" CssClass="lbl" Text="Condition 4 Type"></asp:Label>
                                                                    </td>
                                                                    <td class="TXTsDDLsTDTwo">
                                                                        <asp:DropDownList ID="ddlConditionType4" runat="server" AutoPostBack="true" CssClass="ddl TXTsDDLs" Enabled="false">
                                                                            <asp:ListItem Text=""></asp:ListItem>
                                                                            <asp:ListItem Text="ACC_TYPE_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="AUTO_MANUAL_QUOTE"></asp:ListItem>
                                                                            <%--Added By Trupti T : 23-Jan-2019--%>
                                                                            <asp:ListItem Text="BOOKING_CENTER"></asp:ListItem>
                                                                            <asp:ListItem Text="DEAL_PRODUCT"></asp:ListItem>
                                                                            <%--Added By Trupti T : 6-Dec-2018--%><%--Added By Trupti T : 29-Nov-2017--%>
                                                                            <asp:ListItem Text="CURRENCY_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="DEAL_FACING_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="FAVORITE_CODE_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="FAVORITE_CODE_NOT_LIKE"></asp:ListItem>
                                                                            <asp:ListItem Text="MARGIN_TRADE_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="SOURCE_SYSTEM"></asp:ListItem>
                                                                            <%--Added By Trupti T : 24-Apr-2018--%>
                                                                            <asp:ListItem Text="TRADE_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="ORDER_TYPE"></asp:ListItem>
                                                                            <asp:ListItem Text="ACCOUNT_TYPE"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </tr>
                                                </asp:Panel>
                                            </td>
                                        </tr>


                                    </table>
                                </td>
                            </tr>
                            <%--Added By SashaP on 22-12-2020. Asked by ArshinS --%>
                            <tr>
                                <td>
                                    <asp:Panel ID="PnlAdditionalSetup" runat="server" GroupingText="Response Setup ">
                                        <table id="tblAPIResponseInput">
                                            <tr>
                                                <td class="labelsTDOne">
                                                    <asp:Label ID="lblFuncType" runat="server" Text="Type" CssClass="lbl"></asp:Label>
                                                </td>
                                                <td class="TXTsDDLsTDTwo">
                                                    <asp:DropDownList ID="ddlFunctionType" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false">
                                                        <asp:ListItem Value="None">None</asp:ListItem>
                                                        <%--Updated by Sashap on 08-01-2021 for AllFunds--%>
                                                        <asp:ListItem Value="FUNCTION">FUNCTION</asp:ListItem>
                                                        <asp:ListItem Value="STORED PROCEDURE">STORED PROCEDURE</asp:ListItem>
                                                        <asp:ListItem Value="WCF SERVICE">WCF SERVICE</asp:ListItem>

                                                    </asp:DropDownList>
                                                </td>
                                                <td class="labelsTDOne">
                                                    <%--<START : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                    <asp:Label ID="lblNoOfRetrySP" runat="server" Text="No of retry Attempt" CssClass="lbl"></asp:Label>
                                                    <%--<END : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                </td>
                                                <td>
                                                     <%--<START : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                    <asp:TextBox ID="txtNoOfRetrySP" runat="server" MaxLength="255" Enabled="true" CssClass="txt" onkeypress="return ValidateFields()" Visible="false" Style="width: 100px"></asp:TextBox>
                                                    <%--<END : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                </td>

                                                <%--added by Pranav D 7-May-2021 | Request Type as asked by Ashiwn sir for HTTP POST export channel--%>
                                            </tr>


                                            <tr>
                                                <td class="labelsTDOne" visible="false">
                                                    <asp:Label ID="lblurl" runat="server" Text="URL" CssClass="lbl"></asp:Label>
                                                </td>
                                                <td colspan="3">
                                                    <%--  <asp:TextBox ID="txtDBName" runat="server" MaxLength="255" Enabled="true" CssClass="txt txtLong"></asp:TextBox> --%>
                                                    <asp:TextBox ID="txtURL" runat="server" MaxLength="255" CssClass="selectable enableCPA" Visible="false" Enabled="true" AutoPostBack="true" Width="620px" OnTextChanged="txtURL_TextChanged"></asp:TextBox>
                                                    <%--<asp:TextBox ID="txtURL" runat="server" TextMode="MultiLine" Rows="1" Enabled="true" data-min-rows="1" Visible="false" AutoPostBack="true" CssClass="selectable enableCPA autoExpand" OnTextChanged="txtURL_TextChanged" Width="620px"></asp:TextBox>--%>

                                                </td>

                                            </tr>

                                            <tr>
                                                <td>
                                                    <%--  <asp:TextBox ID="txtDBName" runat="server" MaxLength="255" Enabled="true" CssClass="txt txtLong"></asp:TextBox> --%>
                                                    <asp:HiddenField ID="hdnClassName" Value="" runat="server" />

                                                </td>

                                            </tr>
                                            <%--Added By SashaP on 13-01-2021. Asked by ArshinS --%>
                                            <tr>
                                                <td class="labelsTDOne">
                                                    <asp:Label ID="lblFuncName" runat="server" Text="Function Name" CssClass="lbl"></asp:Label>
                                                    <asp:Label ID="lblProcName" runat="server" Text="Stored Proc Name" CssClass="lbl"></asp:Label>
                                                    <asp:Label ID="lblWCFName" runat="server" Text="Method Name" CssClass="lbl"></asp:Label>
                                                </td>
                                                <%--<td class="TXTsDDLsTDTwo" colspan="3">--%>
                                                <td class="" colspan="3">
                                                    <%--<asp:TextBox ID="txtFuncName" runat="server" MaxLength="255" Enabled="true" CssClass="txt TXTsDDLs" Visible="false"></asp:TextBox>--%>
                                                    <asp:TextBox ID="txtFuncName" runat="server" MaxLength="255" Enabled="true" CssClass="txt" Visible="false" Style="width: 618px"></asp:TextBox>
                                                    <asp:DropDownList ID="ddlFuncName" runat="server" CssClass="ddl" AutoPostBack="True" Visible="false" Style="width: 620px !important">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="labelsTDOne">
                                                    <%--<START : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                    <asp:Label ID="lblResTemplatePath" runat="server" Text="Response Template Path" CssClass="lbl"></asp:Label>
                                                    <%--<END : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                </td>
                                                <td class="" colspan="3">
                                                    <%--<START : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                    <asp:TextBox ID="txtResTemplatePath" runat="server" MaxLength="255" Enabled="true" CssClass="txt" onkeypress="return ValidateFields()" Visible="false" Style="width: 230px"></asp:TextBox>
                                                    <%--<END : JIRA No INT1FIN47-413 Added by Pranav D 28-Feb-2022 >--%>
                                                </td>
                                            </tr>
                                            <%--END::SashaP||13-01-2021 --%>
                                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Panel ID="pnlLookup" runat="server" GroupingText="Lookup Template ">
                                        <table>
                                            <tr>
                                                <td class="labelsTDOne">
                                                    <asp:Label ID="lblReferenceLkup" runat="server" Text="Reference Lookup" CssClass="lbl"></asp:Label>
                                                </td>
                                                <td class="TXTsDDLsTDTwo">
                                                    <asp:DropDownList ID="ddlRefLookup" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="true" Enabled="false">
                                                    </asp:DropDownList>
                                                </td>

                                                <td class="labelsTDThree">
                                                    <asp:Label ID="lblTagLibrary" runat="server" Text="Tag Library" CssClass="lbl"></asp:Label>
                                                </td>
                                                <td class="TXTsDDLsTDTwoRight">
                                                    <asp:DropDownList ID="ddlTagLibrary" runat="server" CssClass="ddl TXTsDDLs" AutoPostBack="false" Enabled="false">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>


                            <%-- <tr>
     <td>
                        <asp:Panel ID="pnlTagLibrary" runat="server" GroupingText="Tag Library">
                            <table style="width: 646px">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblTagLibrary" runat="server" Text="Tag Library" CssClass="lbl" Width="100px"></asp:Label>
                                    </td>
                                    <td class="Width230" style="width: 228px">
                                        <asp:DropDownList ID="ddlTagLibrary" runat="server" CssClass="ddl" AutoPostBack="true" Enabled="false" Width="180px">                                         
                                        </asp:DropDownList>
                                    </td>
                                    <td  style="width:228px"></td>
                                    <td  ></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                      </tr>--%>
                        </table>
                    </td>
                    <td class="VertTop" style="margin-top: 11px">
                        <div style="width: 100%" class="Filter">
                        <table class=" Filterpad2" id="tblViewer" >
                            <tr>
                                <td class="labelsShortTD btn_padding">
                                    <asp:Label ID="lblVWEntityName" runat="server" Text="Entity Name" CssClass="lbl"></asp:Label>
                                </td>
                                <td style="width: 250px;">
                                    <asp:DropDownList ID="ddlVWEntity" runat="server" CssClass=" ddlVWWidth" AutoPostBack="true"></asp:DropDownList>
                                </td>
                                <td class="labelsShortTD btn_padding">
                                    <asp:Label ID="lblVWProductName" Text="Product Name" runat="server" CssClass="lbl"></asp:Label>
                                </td>
                                <td style="width: 250px;">
                                    <asp:DropDownList ID="ddlVWProduct" runat="server" CssClass=" ddlVWWidth" AutoPostBack="true">
                                    </asp:DropDownList>
                                </td>
<%--                                <td style="width: 250px;">
                                    <span id="imgAccordion" style="font-size: 16px; padding-left: 15px; cursor:pointer" onclick="gridAccordion()"><<</span>
                                </td>--%>
                                <%--changes done by Pranav D 30-Nov-2021 : Load button and export to excel shifted in 3rd row--%>
                            </tr>
                            <tr>
                                <%--changes done by Pranav D 30-Nov-2021 : Template Name dropdown shifted to 1st row--%>
                                <td class="labelsShortTD btn_padding">
                                    <asp:Label ID="lblVWTemplateName" Text="Template Name" runat="server" CssClass="lbl"></asp:Label>
                                </td>
                                <td style="width: 250px;">
                                    <asp:DropDownList ID="ddlVWTemplate" runat="server" CssClass=" ddlVWWidth" AutoPostBack="true">
                                    </asp:DropDownList>
                                </td>
                                <%--changes done by Pranav D 30-Nov-2021 : Record per page shifted in 3rd row--%>
                                <td class="labelsShortTD ">
                                    <asp:Label ID="lblVWExportChannel" Text="Export Channel" runat="server" CssClass="lbl"></asp:Label>
                                </td>
                                <td style="width: 250px;">
                                    <asp:DropDownList ID="ddlVWExportChannel" runat="server" CssClass="ddlVWWidth " AutoPostBack="true">
                                        <asp:ListItem Text="All" Value="All"></asp:ListItem>
                                        <asp:ListItem Text="ACTIVEMQ" Value="ActiveMQ"></asp:ListItem>
                                        <asp:ListItem Text="E-MAIL" Value="E-MAIL"></asp:ListItem>
                                        <asp:ListItem Text="FTP" Value="FTP"></asp:ListItem>
                                        <asp:ListItem Text="HTTP POST" Value="HTTP POST"></asp:ListItem>
                                        <asp:ListItem Text="HardDrive" Value="HardDrive"></asp:ListItem>
                                        <asp:ListItem Text="MQSERIES" Value="MQSERIES"></asp:ListItem>
                                        <asp:ListItem Text="SFTP" Value="SFTP"></asp:ListItem>
                                        <asp:ListItem Text="SOLACE API" Value="SOLACE API"></asp:ListItem>
                                        <asp:ListItem Text="SOLACE SSL API" Value="SOLACE SSL API"></asp:ListItem>
                                        <asp:ListItem Text="SonicMQ" Value="SonicMQ"></asp:ListItem>
                                        <asp:ListItem Text="WEBMETHODS" Value="WEBMETHODS"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <%--Added by Pranav D 08-Sep-2021 record per page--%>
                            </tr>
                            <%--changes done by Pranav D 30-Nov-2021 : new dropdown for export channel and smart search textbox--%>
                            <tr>
                                <%--Added by Pranav D 08-Sep-2021 record per page JIRA INT1FIN47-67--%>
                                <td class="labelsShortTD ">
                                    <asp:Label ID="lblSearch" Text="Search" runat="server" CssClass="lbl"></asp:Label>
                                </td>
                                <td style="width: 250px;">
                                    <asp:TextBox runat="server" ID="txtSearch" CssClass="txt smartSearchWidth"></asp:TextBox>
                                </td>

                                <td colspan="2">
                                    <div style="display: flex; width: 295px;">
                                        <asp:Button ID="btnLoad" Text="Load" ToolTip="Load (ctrl + r)" runat="server" CssClass="btn" Width="100px" />
                                        <asp:Button ID="btnExport" CssClass="Export2Excel" Text="" ToolTip="Export Excel (ctrl + shift + e)" runat="server" />
                                    </div>
                                </td>
                                <%--                                <td class="">
                                    <asp:Button ID="btnLoad" Text="Load" ToolTip="Load (ctrl + r)" runat="server" CssClass="btn" Width="100px" />
                                </td>
                                <td class="">
                                    <asp:Button ID="btnExport" CssClass="Export2Excel" Text="" ToolTip="Export Excel (ctrl + shift + e)" runat="server" />
                                </td>--%>
                            </tr>
                        </table>
                        </div>
                        <fieldset class="Fieldset Filterpad2">
                            <%--Added on 11-Mar-2021 added Filterpad2--%>
                            <legend>Total Record(s) Count :
                        <asp:Label ID="lblrecordcount" runat="server" CssClass="lbl"></asp:Label></legend>
                            <div id="gdvINTMAP" style="overflow: auto; width: 899px">
                                <%--Added on 11-Mar-2021 removed  width: 899px;--%>
                                <asp:GridView ID="dgvINTMAP" runat="server" CssClass="Grid"
                                    AutoGenerateColumns="False" AllowColumnResizing="True" EmptyDataText="No Records Found"
                                    CellPadding="3" BorderStyle="None" Width="1%" AllowPaging="True" PageSize="999" PagerStyle-Height="32px">
                                    <SelectedRowStyle CssClass="GridItemSelect"></SelectedRowStyle>
                                    <AlternatingRowStyle CssClass="GridItem"></AlternatingRowStyle>
                                    <RowStyle CssClass="GridItem"></RowStyle>
                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                    <PagerStyle CssClass="GridPager" />
                                    <%--Added by Pranav D 08-Sep-2021 pagination changer--%>
                                    <PagerSettings Mode="NumericFirstLast"
                                        FirstPageText="First"
                                        LastPageText="Last"
                                        Position="Bottom" />
                                    <%--Added by Pranav D 08-Sep-2021 pagination changer--%>
                                    <Columns>
                                        <%--Added by Pranav D 08-Sep-2021 Link button added to show mappings on link button click JIRA INT1FIN47-67--%>
                                        <asp:TemplateField ItemStyle-Width="150">
                                            <ItemTemplate>
                                                <asp:LinkButton Text="View" ID="lnkMapBtn" runat="server" CommandName="ViewMapping"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <%--Added by Pranav D 08-Sep-2021 Link button added to show mappings on link button click--%>
                                        <asp:BoundField DataField="Entity_Name" HeaderText="Entity Name">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Product_Code" HeaderText="Product Name">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="True" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="TemplateCode" HeaderText="Template Name">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="True" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="EventCode" HeaderText="Event Name">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <%--Change done by Pranav D JIRA ID : INT1FIN47-67--%>
                                        <asp:BoundField DataField="UCP_Template_Code" HeaderText="UCP Template Reference">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="TradeIdFormat" HeaderText="Trade ID Format">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Description" HeaderText="Description">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ExportChannel" HeaderText="Export Channel">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="MessageType" HeaderText="Interface Message Type">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="FileSentBy" HeaderText="File Sent By">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="FileSentTo" HeaderText="File Sent To">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="SourceFileExtension" HeaderText="Source File Ext.">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="OutputFileExtension" HeaderText="Output File Ext.">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="LocalFolderName" HeaderText="Local Folder Name">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="LocalFileName" HeaderText="Local File Name">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="SourceFilePath" HeaderText="Source File Path">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="OutputFileDirectory" HeaderText="Output File Directory">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ArchiveFilePath" HeaderText="Archive File Path">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="LogFilePath" HeaderText="Log File Path">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="HeartbeatApp" HeaderText="Heartbeat App Y/N">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="HeartbeatSourceFilePath" HeaderText="Heartbeat Source File">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ChannelDetailsField1" HeaderText="Channel Details Field1">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ChannelDetailsField2" HeaderText="Channel Details Field2">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ChannelDetailsField3" HeaderText="Channel Details Field3">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ChannelDetailsField4" HeaderText="Channel Details Field4">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ChannelDetailsField5" HeaderText="Channel Details Field5">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ChannelDetailsField6" HeaderText="Channel Details Field6">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="MQPortID" HeaderText="MQ Port ID">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="MQIP" HeaderText="MQ IP">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="DisplayName" HeaderText="Display Name">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="ActiveYN" HeaderText="Active Y/N">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="DebugYN" HeaderText="Debug Y/N">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Misc1" HeaderText="Misc1">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Misc2" HeaderText="Misc2">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Misc3" HeaderText="Misc3">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Misc4" HeaderText="Misc4">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc5" HeaderText="Misc5">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc6" HeaderText="Misc6">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc7" HeaderText="Misc7">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc8" HeaderText="Misc8">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc9" HeaderText="Misc9">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc10" HeaderText="Misc10">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc11" HeaderText="Misc11">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc12" HeaderText="Misc12">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Misc13" HeaderText="Misc13">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="FTDP_NFC_MQ_PortID" HeaderText="FTDP_NFC_MQ_PortID">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="FTDP_NFC_MQ_IP" HeaderText="FTDP_NFC_MQ_IP">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="UCP_Reference_template" HeaderText="Reference Lookup">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="Tag_Library" HeaderText="Tag Library" Visible="false">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="FTDP_Object_Type" HeaderText="Object Type" Visible="true">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="FTDP_Object_Value" HeaderText="Object Value" Visible="true">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="FTDP_Object_Name" HeaderText="Object Name" Visible="true">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="FTDP_Object_Contract_Name" HeaderText="Object Contract Name" Visible="true">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                        <asp:BoundField DataField="FTDP_AuthType_ID" HeaderText="AuthType ID" Visible="false">
                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                            <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle"></ItemStyle>
                                        </asp:BoundField>

                                    </Columns>

                                </asp:GridView>

                            </div>
                            <%--<tr>--%>
                            <%--<td>--%>
                            <%--Added by Pranav D 08-Sep-2021 pagination buttons JIRA INT1FIN47-67--%>
                            <asp:Button ID="btnPrev_Grid" runat="server" Text="Prev" Style="border: none; height: 25PX; width: 60PX; background-color: #f7f7f7 !important;" />
                            <asp:TextBox ID="txtpageno_Grid" runat="server" Enabled="true" Text="1" MaxLength="6" Style="text-align: center;" Width="35px" onkeypress="return isNumberKey(event)" AutoPostBack="true" OnTextChanged="txtpageno_Grid_TextChanged"> </asp:TextBox>
                            <asp:Button ID="btnNext_Grid" runat="server" Text="Next" Style="border: none; height: 25PX; width: 60PX; background-color: #f7f7f7 !important;" />

                            <asp:Label ID="lblRowPerPage" Text="Record(s) Per Page: " runat="server" CssClass="lbl" Style="margin-left: 15px; "></asp:Label>

                            <asp:TextBox runat="server" ID="txtRowPerPage" Text="10" CssClass="txt" Style="width: 50px !important;"></asp:TextBox>
                            <%--Added by Pranav D 08-Sep-2021 pagination buttons--%>
                            <%--</td>--%>
                            <%--</tr>--%>
                        </fieldset>

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


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




            <asp:Button ID="btnTarget" runat="server" Text="" Visible="false" />


            <AjaxTab:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panl1" TargetControlID="btnTarget"
                CancelControlID="btnCancel1" BackgroundCssClass="Background1" />

            <asp:Panel ID="Panl1" runat="server" CssClass="Popup1" align="center" Style="display: none;">
                <iframe style="width: 350px; height: 300px;" id="irm1" src="DirectoryBrowser.aspx" runat="server" frameborder="0"></iframe>
                <br />
                <table>
                    <tr>
                        <td>
                            <asp:Button ID="btnOpen" runat="server" Text="Open" CssClass="btn" />
                        </td>
                        <td style="padding-left: 10px">
                            <asp:Button ID="btnCancel1" runat="server" Text="Cancel" CssClass="btn" />
                        </td>
                        <td>
                            <asp:HiddenField ID="hdnTextToFill" runat="server" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>




        </ContentTemplate>
        <%--<Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnBrowse1" EventName="Click" />
            <asp:PostBackTrigger ControlID="btnExport" />
            <asp:PostBackTrigger ControlID="btnSave" />
            <asp:PostBackTrigger ControlID="btnCancel" />
            <asp:PostBackTrigger ControlID="lnkDownload" />
        </Triggers>--%>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnBrowse1" EventName="Click" />
            <asp:PostBackTrigger ControlID="btnExport" />
            <asp:PostBackTrigger ControlID="btnSave" />
            <asp:PostBackTrigger ControlID="btnCancel" />
            <asp:PostBackTrigger ControlID="lnkDownload" />
            <asp:AsyncPostBackTrigger ControlID="btnMQAddInfo" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnEdit" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>


    <asp:UpdatePanel ID="upcpnlSolaceSSLAPI" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Panel ID="pnlSolaceSSLAPI" runat="server" CssClass="Popup3" Style="display: none;">
                <%-- <table style="flex-align:center">--%>
                <table>
                    <tr>
                        <td></td>
                        <td style="float: right">
                            <asp:Button ID="btnCrossSSL" runat="server" CssClass="btn" Text="X" Width="20px" Height="14px" />
                        </td>
                    </tr>
                    <%--Added by Pranav D 20-Apr-2021--%>

                    <tr>
                        <td>
                            <asp:Panel ID="pnlSessionProperties" runat="server" GroupingText="Session Properties">
                                <table class="" id="tblSessionProp">
                                    <tr>
                                        <td class="labelsTDOne">
                                            <asp:Label ID="lblConnectRetries" runat="server" Text="Connect Retries Per Host" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 29px">
                                            <asp:TextBox ID="txtConnectRetries" runat="server" onkeypress='return event.charCode >= 48 && event.charCode <= 57' MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>

                                        <td class="labelsTDOne" style="padding-left: 20px">
                                            <asp:Label ID="lblNumberOfRetry" runat="server" Text="Number of retries" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 47px">
                                            <asp:TextBox ID="txtNumberOfRetry" runat="server" onkeypress='return event.charCode >= 48 && event.charCode <= 57' MaxLength="255" CssClass="txt txtLong1" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td class="labelsTDOne">
                                            <%--Change done by Pranav D 20-Sep-2021 | Spelling Mistake Resolved--%>
                                            <asp:Label ID="lblReconnectRetries" runat="server" Text="Reconnect Retries" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 29px">
                                            <asp:TextBox ID="txtReconnectRetries" runat="server" onkeypress='return event.charCode >= 48 && event.charCode <= 57' MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>

                                        <td class="labelsTDOne" style="padding-left: 20px">
                                            <asp:Label ID="lblReconnectRetriesWait" runat="server" Text="Number of retries wait in Msec" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 47px">
                                            <asp:TextBox ID="txtReconnectRetriesWait" runat="server" onkeypress='return event.charCode >= 48 && event.charCode <= 57' MaxLength="255" CssClass="txt txtLong1" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td class="labelsTDOne">
                                            <asp:Label ID="lblResponseTimeOut" runat="server" Text="Response Timeout" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 29px">
                                            <asp:TextBox ID="txtResponseTimeOut" runat="server" onkeypress='return event.charCode >= 48 && event.charCode <= 57' MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <td class="labelsTDOne" style="padding-left: 20px">
                                            <asp:Label ID="lblJMSClientId" runat="server" Text="JMSClientID" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 47px">
                                            <asp:TextBox ID="txtJMSClientId" runat="server" MaxLength="255" CssClass="txt txtLong1" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <asp:Panel ID="pnlSSLCertificateValidation" runat="server" GroupingText="SSL Certificate Validation">
                                <table class="" id="tblSSLValidation">
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="labelsTDOne">
                                            <asp:Label ID="lblTrustedCommonList" runat="server" Text="SSL Trusted Common Name List" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo" style="padding-left: 10px">
                                            <asp:TextBox ID="txtTrustedCommonList" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <%--<td class="labelsTDThree">--%>

                                        <%--   </tr>
                                     <tr>--%>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="labelsTDThree" style="padding-left: 20px">
                                            <asp:Label ID="lblSSLCipherSuite" runat="server" Text="SSL Cipher Suites" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo" style="padding-left: 22px">
                                            <asp:TextBox ID="txtSSLCipherSuite" runat="server" MaxLength="255" CssClass="txt txtLong1" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <%-- <td class="labelsTDThree"> --%>
                                    </tr>
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="labelsTDOne">
                                            <asp:Label ID="lblAuthScheme" runat="server" Text="Authentication Scheme" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo" style="padding-left: 10px">
                                            <asp:DropDownList ID="ddlAuthScheme" runat="server" CssClass="ddl TXTsDDLs">
                                                <asp:ListItem Text="" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="BASIC"></asp:ListItem>
                                                <asp:ListItem Text="CLIENT CERTIFICATE"></asp:ListItem>
                                            </asp:DropDownList>

                                        </td>
                                        <td class="labelsTDThree" style="padding-left: 20px">
                                            <asp:Label ID="lblPrivateKeyFile" runat="server" Text="SSL Client Private Key File" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 22px">
                                            <asp:TextBox ID="txtPrivateKeyFile" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong1"></asp:TextBox>
                                        </td>

                                    </tr>

                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="labelsTDOne">
                                            <asp:Label ID="lblValidateCertificate" runat="server" Text="SSL Validate Certificate" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo" style="padding-left: 10px">

                                            <asp:DropDownList ID="ddlSSLValidateCertificate" runat="server" CssClass="ddl TXTsDDLs">
                                                <asp:ListItem Text="YES"></asp:ListItem>
                                                <asp:ListItem Text="NO"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <%-- <td class="labelsTDThree"> --%>

                                        <td class="labelsTDThree" style="padding-left: 20px">
                                            <asp:Label ID="lblCertificateFile" runat="server" Text="SSL Client Certificate File" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 22px">
                                            <asp:TextBox ID="txtCertificateFile" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong1"></asp:TextBox>
                                        </td>

                                    </tr>

                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="labelsTDOne">
                                            <asp:Label ID="lblValidateCertificateDate" runat="server" Text="SSL Validate Certificate Date" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo" style="padding-left: 10px">

                                            <asp:DropDownList ID="ddlSSLValidateCertificateDate" runat="server" CssClass="ddl TXTsDDLs">
                                                <asp:ListItem Text="YES"></asp:ListItem>
                                                <asp:ListItem Text="NO"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <%-- <td class="labelsTDThree"> --%>


                                        <td class="labelsTDThree" style="padding-left: 20px">
                                            <asp:Label ID="lblPrivateKeyFilePassword" runat="server" Text="SSL Client Private Key File Password" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 22px">
                                            <asp:TextBox ID="txtPrivateKeyFilePassword" runat="server" MaxLength="255" Enabled="false" CssClass="txt txtLong1" TextMode="Password"></asp:TextBox>
                                        </td>

                                    </tr>

                                </table>
                            </asp:Panel>
                        </td>
                    </tr>

                    <%--Import Parameter section--%>
                    <tr>
                        <td>
                            <asp:Panel ID="pnlImportParameters" runat="server" GroupingText="Import Parameters">
                                <table class="" id="tblImportParameters">
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="labelsTDOne">
                                            <asp:Label ID="lblImportDestination" runat="server" Text="Import Destination" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo" style="padding-left: 29px">
                                            <asp:DropDownList ID="ddlImportDestination" runat="server" CssClass="ddl TXTsDDLs">
                                                <asp:ListItem Text="Queue"></asp:ListItem>
                                                <asp:ListItem Text="Topic"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <%-- <td class="labelsTDThree"> --%>


                                        <td class="labelsTDThree" style="padding-left: 20px">
                                            <asp:Label ID="lblQueueTopic" runat="server" Text="Queue / Topic" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo" style="padding-left: 60px">
                                            <asp:TextBox ID="txtQueueTopic" runat="server" MaxLength="255" data-min-rows="1" CssClass="txt txtLong1 autoExpand" TextMode="MultiLine" Rows="1"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>

                </table>
            </asp:Panel>

        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>

    <asp:UpdatePanel ID="ucppnlMQSeries" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Panel ID="pnlMQAddInfo" runat="server" CssClass="Popup2" Style="display: none;">
                <%-- <table style="flex-align:center">--%>
                <table>
                    <tr>
                        <td></td>
                        <td style="float: right">
                            <asp:Button ID="btnCross" runat="server" CssClass="btn" Text="X" Width="20px" Height="14px" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Panel ID="pnlMessageCharSet" runat="server" GroupingText="Message Char Set">
                                <table class="" id="tblMessageCharSet">
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblCharSet" runat="server" Text="Char Set" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtCharSet" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" onkeypress='return event.charCode >= 48 && event.charCode <= 57' oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDThree"></td>
                                    </tr>
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblFormat" runat="server" Text="Format" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtFormat" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <%-- <td class="labelsTDThree"> --%>
                                        <td class="lblTDThree"></td>
                                    </tr>

                                </table>
                            </asp:Panel>
                            <asp:Panel ID="PnlMessageType" runat="server" GroupingText="Message Type">
                                <table class="" id="tblMessageType">
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblMessageType" runat="server" Text="Message Type" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtMessageType" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <%--<td class="labelsTDThree"> --%>
                                        <td class="lblTDThree"></td>
                                    </tr>
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblReport" runat="server" Text="Report" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtReport" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDThree"></td>
                                    </tr>
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblMessageExpiry" runat="server" Text="Message Expiry" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtMessageExpiry" runat="server" MaxLength="50" CssClass="txt TXTsDDLs" onkeypress='return event.charCode >= 48 && event.charCode <= 57' oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDThree">
                                            <asp:Label ID="lblInSeconds" runat="server" Text="(sec)" CssClass="lbl"></asp:Label>
                                        </td>

                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="pnlCommunicationInfo" runat="server" GroupingText="Communication Information">
                                <table class="" id="tblCommunicationInfo">
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblCommType" runat="server" Text="Communication Type" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo">
                                            <asp:DropDownList ID="ddlCommType" runat="server" CssClass="ddl TXTsDDLs">
                                                <asp:ListItem Text="Asynchronous"></asp:ListItem>
                                                <asp:ListItem Text="Synchronous"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>


                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDThree"></td>

                                    </tr>
                                    <tr>
                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblSyncTimeout" runat="server" Text="Synchronous Timeout" CssClass="lbl"></asp:Label>
                                        </td>
                                        <%--<td class="TXTsDDLsTDTwo">--%>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtSyncTimeOut" runat="server" MaxLength="50" CssClass="txt TXTsDDLs" onkeypress='return event.charCode >= 48 && event.charCode <= 57' oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>


                                        <%--<td class="labelsTDThree">--%>
                                        <td class="lblTDThree">
                                            <asp:Label ID="lblCommInSec" runat="server" Text="(sec)" CssClass="lbl"></asp:Label>
                                        </td>

                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                        <td style="vertical-align: top;">
                            <asp:Panel ID="PnlNotificationQueueDetails" runat="server" GroupingText="Notification Queue Details">
                                <table class="" id="tblNotificationQueueDetails">
                                    <tr>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblNfcQueueManager" runat="server" Text="Queue Manager" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtNfcQueueManager" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblNfcQueueName" runat="server" Text="Queue Name" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtNfcQueueName" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblNfcQueueChannel" runat="server" Text="Queue Channel" CssClass="lbl"></asp:Label>
                                        </td>

                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtNfcQueueChannel" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblNfcMQServerIP" runat="server" Text="MQ Server IP" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtNfcMQServerIP" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td class="lblTDOne">
                                            <asp:Label ID="lblNfcPortNumber" runat="server" Text="Port Number" CssClass="lbl"></asp:Label>
                                        </td>
                                        <td class="lblTDTwo">
                                            <asp:TextBox ID="txtNfcPortNumber" runat="server" MaxLength="255" CssClass="txt TXTsDDLs" onkeypress='return event.charCode >= 48 && event.charCode <= 57' oncopy="return false" onpaste="return false" oncut="return false"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>

    <%-- Start: Saurabh Kulkarni & Pranav Deshpande | 19-May-2021 | Template Design Popup --%>

    <asp:UpdatePanel ID="ucppnlHardDrive" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Panel ID="pnlDesign" runat="server" CssClass="Popup2" Style="display: none; width: 1000px; height: 630px; padding: 10px" GroupingText="Source Template Content">
                <div class="popup-container">
                    <div class="header-wrapper">
                        <asp:Button ID="btnCloseDesign" runat="server" CssClass="btn" Text="X" Width="20px" Height="14px" />
                    </div>
                    <div class="content-wrapper">
                        <%--<div class="input-container" style="display: none !important">
                            <div class="design-form">
                                <asp:Label ID="lblDBNamePopUp" runat="server" Text="Database"></asp:Label>
                                <asp:DropDownList ID="ddlDBNamePopup" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlDBNamePopup_SelectedIndexChanged" AutoPostBack="true" CausesValidation="false"></asp:DropDownList>
                            </div>

                            <div class="design-form">
                                <asp:Label ID="lblSchemaName" runat="server" Text="Schema"></asp:Label>
                                <asp:DropDownList ID="ddlSchemaNamePopup" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlSchemaNamePopup_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                            </div>

                            <div class="design-form">
                                <asp:Label ID="lblTableName" runat="server" Text="Table"></asp:Label>
                                <asp:DropDownList runat="server" ID="ddlTableNamePopup" CssClass="ddl" OnSelectedIndexChanged="ddlTableNamePopup_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                            </div>

                            <div class="design-form">
                                <asp:Label ID="lblAliasNames" runat="server" Text="Alias Name"></asp:Label>
                                <asp:DropDownList ID="ddlAliasNamePopup" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlAliasNamePopup_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                            </div>

                            <div class="design-form">
                                <label class="lbl">Unique .Net GUID</label>
                                <span class="draggable" data-type="guid">[GUID:UNIQUEID]</span>
                            </div>

                            <div class="accordion">
                                <div class="accordion-header">DB Tag Fields</div>
                                <div class="accordion-panel">
                                    <div class="tag-list-container">
                                        <asp:GridView ID="grdTags" runat="server" CssClass="Grid" AutoGenerateColumns="false" ShowHeader="false" OnRowDataBound="grdTags_RowDataBound">
                                            <SelectedRowStyle CssClass="GridItemSelect"></SelectedRowStyle>
                                            <AlternatingRowStyle CssClass="GridItem draggable"></AlternatingRowStyle>
                                            <RowStyle CssClass="GridItem draggable"></RowStyle>
                                            <Columns>
                                                <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50" ItemStyle-VerticalAlign="Middle">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkTag" runat="server" onclick="checkTag(event)" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:BoundField DataField="DTI_TAG_VALUE" />
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </div>
                                <div class="accordion-header">Functions / Stored Procedures / Views</div>
                                <div class="accordion-panel">
                                    <div class="input-container">
                                        <div class="design-form">
                                            <label class="lbl">Type</label>
                                            <asp:DropDownList ID="ddlFSVType" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlFSVType_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                        <div class="design-form">
                                            <asp:Label ID="lblFSVName" runat="server"></asp:Label>
                                            <asp:DropDownList ID="ddlFSVName" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlFSVName_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                        <div class="design-form">
                                            <asp:Label ID="lblColumnName" runat="server" CssClass="lbl"></asp:Label>
                                            <asp:DropDownList ID="ddlColumnName" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlColumnName_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                        <div class="design-form">
                                            <label class="lbl">Tag Preview</label>
                                            <div id="FSVPreview" class="fsvValue draggable" data-type="fsv"></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="accordion-header">INTMAP / Config</div>
                                <div class="accordion-panel">
                                    <div class="input-container">
                                        <div class="design-form">
                                            <label class="lbl">Type</label>
                                            <asp:DropDownList ID="ddlIntmapConfig" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlIntmapConfig_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                        <div class="design-form config-settings-filter">
                                            <label class="lbl">Config Level</label>
                                            <asp:DropDownList ID="ddlConfigSettingLevel" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddlConfigSettingLevel_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </div>
                                        <div class="design-form">
                                            <asp:Label ID="lblIntmapConfigFieldName" runat="server" CssClass="lbl config-settings-label" Text="Intmap Field Name"></asp:Label>
                                            <div class="config-settings-search-wrapper">
                                                <input id="txtIntmapConfigFieldName" type="text" class="txt intmapConfigFieldName">
                                                <div class="config-settings-list-wrapper">
                                                    <ul class="config-settings-list">
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="design-form">
                                            <label class="lbl">Tag Preview</label>
                                            <div id="ICPreview" class="icValue draggable" data-type="ic"></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="accordion-header">IF Conditions</div>
                                <div class="accordion-panel">
                                    <div class="input-container">
                                        <div class="design-form">
                                            <label class="lbl">Field 1</label>
                                            <input type="text" class="txt if-field1">
                                        </div>
                                        <div class="design-form">
                                            <label class="lbl">Comparison Operator</label>
                                            <select class="ddl if-operator">
                                                <option value="E">E</option>
                                                <option value="NE">NE</option>
                                                <option value="LT">LT</option>
                                                <option value="LTE">LTE</option>
                                                <option value="GT">GT</option>
                                                <option value="GTE">GTE</option>
                                            </select>
                                        </div>
                                        <div class="design-form">
                                            <label class="lbl">Comparator Value</label>
                                            <input type="text" class="txt if-comparator">
                                        </div>
                                        <div class="design-form">
                                            <label class="lbl">Field 2 (Condition True)</label>
                                            <input type="text" class="txt if-true">
                                        </div>
                                        <div class="design-form">
                                            <label class="lbl">Field 3 (Condition False)</label>
                                            <input type="text" class="txt if-false">
                                        </div>
                                        <div class="design-form">
                                            <label class="lbl">Tag Preview</label>
                                            <div id="IFPreview" class="if-value draggable" data-type="if"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>--%>
                        <div class="output-container">
                            <%--<div class="source-file-wrapper">
                                <label class="lbl">Source File Path</label>
                                <asp:TextBox ID="txtPopupSourceFilePath" runat="server" CssClass="txt" Enabled="false" Style="width: 100%"></asp:TextBox>
                            </div>--%>
                            <div class="output-file-container" tabindex="0">
                                <div class="output-file-wrapper">
                                    <asp:HiddenField ID="templateContent" runat="server" />
                                    <table id="templateDesignTable" class="templateDesignTable" tabindex="0" onfocus="focusDesignTable(event)" onclick="focusDesignTable(event)" style="display: none">
                                        <tr>
                                            <td class="deleteXMLRowTD">
                                                <span class="deleteXMLRowCross" onclick="removeRow(event)">x</span>
                                            </td>
                                            <td>
                                                <input type="text" placeholder="Enter XML Tag here" style="width: 100% !important; border: none !important;" class="templateDesignInput" onkeydown="typeValue(event)" />
                                            </td>
                                        </tr>
                                    </table>
                                    <pre id="TemplateShow" style="white-space: pre-wrap;">
                                    </pre>
                                </div>
                            </div>
                            <%--                            <div id="tagDetailsWrapper">
                                <div class="tag-details-wrapper">
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">dataType</label>
                                        <asp:TextBox runat="server" ID="txtdataType"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">totalLength</label>
                                        <asp:TextBox runat="server" ID="txttotalLength"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">dataFormat</label>
                                        <asp:TextBox runat="server" ID="txtdataFormat"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">intergralLength</label>
                                        <asp:TextBox runat="server" ID="txtintergralLength"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">fractionalLength</label>
                                        <asp:TextBox runat="server" ID="txtfractionalLength"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">paddingDirection</label>
                                        <asp:TextBox runat="server" ID="txtpaddingDirection"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">paddingCharacter</label>
                                        <asp:TextBox runat="server" ID="txtpaddingCharacter"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">defaultValue</label>
                                        <asp:TextBox runat="server" ID="txtdefaultValue"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">sequence</label>
                                        <asp:TextBox runat="server" ID="txtsequence"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">value</label>
                                        <asp:TextBox runat="server" ID="txtvalue"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">filler</label>
                                        <asp:TextBox runat="server" ID="txtfiller"></asp:TextBox>
                                    </div>
                                    <div class="file-wrapper-form">
                                        <label class="lbl-vertical-align">mandatoryField</label>
                                        <asp:TextBox runat="server" ID="txtmandatoryField"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="buttons-wrapper">
                                <asp:Button ID="btnHDDDesignSave" runat="server" CssClass="btn" Text="Save" Width="62px" />
                                <asp:Button ID="btnHDDDesignCancel" runat="server" CssClass="btn" Text="Cancel" Width="62px" />
                            </div>--%>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>


    <script type="text/javascript">



        <%--function showTemplateContent(filedata) {
            var temp = document.getElementById('<%=templateContent.ClientID%>');

            var strNodeArray = [];
            strNodeArray = filedata.replace(/\n/g, "").split("> ");

            var doc = new DOMParser().parseFromString(strNodeArray[0], "text/html");
            var insideString = doc.documentElement.textContent;

            //var insideString = strNodeArray[0].replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"");
            insideString = insideString.split("> ");

            let isXML = false;
            let allFile = "";
            let spaces = -1;

            if (insideString.includes("<") && insideString.includes("/>")) {
                isXML = true;
            }

            for (let i = 0; i < insideString.length; i++) {
                if (insideString[i].includes("</")) {
                    spaces--;
                } else {
                    spaces++;
                }
                // Changed by Pranav D 18Nov2021 to remove > if file is blank
                if (allFile.length > 0) {
                    allFile += insideString[i].replace(/>\s*$/, "") + ">" + "\r\n";
                    if (isXML) {
                        for (let spaceCount = 0; spaceCount < spaces; spaceCount++) {
                            allFile += "  ";
                        }
                    }
                } else {
                    allFile = "No content";
                }

            }
            console.log(allFile);
            document.getElementById("TemplateShow").innerText = allFile;

            temp.value = "";
        }--%>

        function showTemplateContent(filedata) {
            var temp = document.getElementById('<%=templateContent.ClientID%>');
            console.log("temp...", filedata);
            var strNodeArray = [];
            strNodeArray = filedata.replace(/\n/g, "").split("> ");

            var doc = new DOMParser().parseFromString(strNodeArray[0], "text/html");
            var insideString = doc.documentElement.textContent;

            //var insideString = strNodeArray[0].replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"");
            insideString = insideString.split("> ");

            let isXML = false;
            let allFile = "";
            let spaces = -1;

            if (insideString.includes("<") && insideString.includes("/>")) {
                isXML = true;
            }

            if (filedata.length > 0) {

                if (isXML) {
                    for (let i = 0; i < insideString.length; i++) {
                        if (insideString[i].includes("</")) {
                            spaces--;
                        } else {
                            spaces++;
                        }

                        allFile += insideString[i].replace(/>\s*$/, "") + ">" + "\r\n";
                        if (isXML) {
                            for (let spaceCount = 0; spaceCount < spaces; spaceCount++) {
                                allFile += "  ";
                            }
                        }
                    }
                }
                else {
                    try {
                        //allFile = JSON.parse(filedata);
                        //allFile = JSON.stringify(allFile, undefined, 4);
                        allFile = filedata;
                    } catch (e) {
                        allFile = filedata;
                    }
                }
            } else {
                allFile = "No content";
            }
            console.log(allFile);
            document.getElementById("TemplateShow").innerText = allFile;

            temp.value = "";
        }


        //const b64toBlob = (b64Data, contentType = '', sliceSize = 512) => {
        //    const byteCharacters = atob(b64Data);
        //    const byteArrays = [];

        //    for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
        //        const slice = byteCharacters.slice(offset, offset + sliceSize);

        //        const byteNumbers = new Array(slice.length);
        //        for (let i = 0; i < slice.length; i++) {
        //            byteNumbers[i] = slice.charCodeAt(i);
        //        }

        //        const byteArray = new Uint8Array(byteNumbers);
        //        byteArrays.push(byteArray);
        //    }

        //    const blob = new Blob(byteArrays, {
        //        type: contentType
        //    });
        //    return blob;
        //}

        function downloadFiles(filesData) {
            console.log(filesData);
            for (var i = 0; i < filesData.length; i++) {
                var a = window.document.createElement('a');
                const blob = b64toBlob(filesData[i]["data"], "application/octet-stream");
                a.href = window.URL.createObjectURL(blob, {
                    type: 'application/octet-stream'
                });
                a.download = filesData[i]["filename"];
                document.body.appendChild(a)
                a.click();
                document.body.removeChild(a);
            }
        }


    </script>

    <%-- End: Saurabh Kulkarni & Pranav Deshpande | 19-May-2021 | Template Design Popup --%>
</asp:Content>
