<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_Dns, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<script lang="javascript">
    function trimDoubleQuotes(txt) {
        const textarea = document.getElementById(txt);
        const trimmedText = textarea.value.replace(/"/g, ""); // Removes all double quotes
        // Alternatively, trim only leading and trailing double quotes
        // const trimmedText = textarea.value.replace(/^"|"$/g, "");

        textarea.value = trimmedText;
        //alert(textarea.value);
        // Optionally, submit this value to the server via a hidden field or AJAX
    }
</script>
<div class="row" id="Div_Steps" runat="server">
    <div class="col-xs-12">
        <div class="products-step">
            <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="LB_DNSRecords" runat="server" Text='<%$ Resources:Content,SPT002080%>' />
            </span>
            <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="LB_SOA" runat="server" Text='<%$ Resources:Content,SPT002168%>' />
            </span>
            <span id="div_s3" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="LB_WebRedirect" runat="server" Text='<%$ Resources:Content,WebRedirect%>' />
            </span>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-xs-12">
        <asp:Panel ID="Pnl_DNSRecords" runat="server" Visible="false">
            <div class="card Div_OpsRow" id="Div_OpsRow" runat="server">
                <div class="header">
                    <h3><%= Resources.Content.GN00001320%></h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_AddDNSRecord" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,SPT002081%>" CausesValidation="false" />
                        </div>
                    </div>
                </div>
            </div>
            <br />
            <div class="card">
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12" id="Td_ZoneName" runat="server"></div>
                        <div class="col-sm-9 col-xs-12 hide" id="Td_ZoneNameValue" runat="server">
                            <asp:DropDownList ID="DDL_ZoneNames" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:GridView ID="Gv_DNS" runat="server" AllowPaging="true" DataSourceID="" CssClass="table table-bordered table-striped table-hover"
                                AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN000170%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Host" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000673%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_RecordType" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000387%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Value" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001320%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Edit" runat="server" CommandName="DNSEdit" CssClass="btn btn-primary waves-effect"
                                                Text='<%$ Resources:Content, GN0000276 %>' CausesValidation="false"></asp:LinkButton>
                                            <asp:LinkButton ID="LB_Remove" runat="server" CommandName="DNSRemove" CssClass="btn btn-primary waves-effect btnAction"
                                                Text='<%$ Resources:Content, GN0000278 %>' CausesValidation="false"></asp:LinkButton>
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                TargetControlID="LB_Remove">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <%--PagerTemplate Start--%>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager1" runat="server" />
                                </PagerTemplate>
                                <%--PagerTemplate End--%>
                            </asp:GridView>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 row-label" id="Td_Srv" runat="server">Service Location (SRV) Records</div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:GridView ID="GV_SRV" runat="server" AllowPaging="true" DataSourceID="" CssClass="table table-bordered table-striped table-hover"
                                AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>">

                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN000170%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Name" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000673%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Type" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000387%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Data" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0460%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Host" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000653%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Domain" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,String352%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Service" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0461%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Protocol" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001300%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Priority" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SPT002377%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Weight" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000565%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Port" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001320%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Edit" runat="server" CommandName="SRVEdit" CssClass="btn btn-primary waves-effect"
                                                Text="<%$ Resources:Content,GN0000276%>" CausesValidation="false"></asp:LinkButton>
                                            <asp:LinkButton ID="LB_Remove" runat="server" CommandName="SRVRemove" CssClass="btn btn-primary waves-effect btnAction"
                                                Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false"></asp:LinkButton>
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$ Resources:Content,CBE001 %>"
                                                TargetControlID="LB_Remove">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <%--PagerTemplate Start--%>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager2" runat="server" />
                                </PagerTemplate>
                                <%--PagerTemplate End--%>
                            </asp:GridView>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 row-label">Deleted Records</div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:GridView ID="Gv_DNSDeleted" runat="server" AllowPaging="true" DataSourceID="" CssClass="table table-bordered table-striped table-hover"
                                AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN000170%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Host" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000673%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_RecordType" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000387%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Value" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001320%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Restore" runat="server" CommandName="DNSRestore" CssClass="btn btn-primary waves-effect btnAction"
                                                Text='<%$ Resources:Content, SMI0441 %>' CausesValidation="false"></asp:LinkButton>
                                            <asp:LinkButton ID="LB_Remove" runat="server" CommandName="DNSRemove" CssClass="btn btn-primary waves-effect btnAction"
                                                Text='<%$ Resources:Content, GN0000278 %>' CausesValidation="false"></asp:LinkButton>
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                TargetControlID="LB_Remove">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <%--PagerTemplate Start--%>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager3" runat="server" />
                                </PagerTemplate>
                                <%--PagerTemplate End--%>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>
        <%--Add/Edit DNS Records--%>
        <asp:Panel ID="Pnl_AddDNSRecord" runat="server" Visible="false">
            <div class="card">
                <div class="header">
                    <h3><asp:Literal ID="Ltl_Heading" runat="server" Text="<%$ Resources:Content,SPT002081%>" EnableViewState="true"></asp:Literal></h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,SPT002082%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_RecordType" AutoPostBack="true" runat="server">
                                    <asp:ListItem Text="<%$ Resources:Content,GN0000890%>" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="NS" Value="1" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="A" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="MX" Value="3"></asp:ListItem>
                                    <asp:ListItem Text="CNAME" Value="4"></asp:ListItem>
                                    <asp:ListItem Text="TXT" Value="5"></asp:ListItem>
                                    <asp:ListItem Text="SRV" Value="6"></asp:ListItem>
                                    <%--<asp:ListItem Text="<%$ Resources:Content,SMI0602%>" Value="7"></asp:ListItem>--%>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <asp:Panel ID="Pnl_ShowHide" runat="server">
                        <div class="row" id="Tr_Name" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Ltl_DomainName" runat="server" Text="<%$ Resources:Content,GN000170%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_DomainName" runat="server"></asp:TextBox>
                                        <%--<EM:FilteredTextBoxExtender FilterType="Custom, Numbers, lowercaseLetters, Uppercaseletters"
                                            ValidChars="-.@_" ID="FTB_DomainName" runat="server" TargetControlID="TxBx_DomainName" />--%>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_DomainName" runat="server" ControlToValidate="TxBx_DomainName"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                                        <%--<asp:RegularExpressionValidator ID="REV_TxBx_DomainName" runat="server" ErrorMessage="Please enter @ or a valid host or child domain."
                                            ControlToValidate="TxBx_DomainName" Display="none" ValidationGroup="DNS" SetFocusOnError="True"
                                            ValidationExpression="[@]|^([0-9a-zA-Z\-._]{1,61})$" />--%>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <asp:Literal ID="Lt_DomainName" runat="server"></asp:Literal>
                                <asp:Label ID="Lbl_DomainName" runat="server" Visible="false"></asp:Label>
                            </div>
                        </div>
                        <div class="row" id="Tr_TTLRec" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal4" runat="server" Text="TTL" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_TTL" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_TTL"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="RV_TxBx_TTL" runat="server" ControlToValidate="TxBx_TTL" MinimumValue="1"
                                            ValidationGroup="DNS" MaximumValue="4294967294" Type="Double" Display="None"
                                            ErrorMessage="TTL value is out of the range." />
                                        <EM:FilteredTextBoxExtender FilterType="Numbers,Custom" ValidChars="0123456789" ID="FilteredTextBoxExtender1" runat="server"
                                            TargetControlID="TxBx_TTL" />
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <asp:Literal ID="Ltrl_TTLMsg" runat="server" Text="<%$ Resources:Content,SMI0462%>" EnableViewState="false" />
                            </div>
                        </div>
                        <div class="row" id="Tr_Class" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal21" runat="server" Text="<%$ Resources:Content,SMI0463%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <label>
                                        <asp:Literal ID="Literal10" runat="server" Text="IN" EnableViewState="false" /></label>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_ServerName" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,DGN1110322%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ServerName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_ServerName" runat="server" ControlToValidate="TxBx_ServerName"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <%--<EM:FilteredTextBoxExtender FilterType="Custom, Numbers, lowercaseLetters, Uppercaseletters"
                                            ValidChars="._-" ID="FilteredTextBoxExtender10" runat="server" TargetControlID="TxBx_ServerName" />--%>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_IP" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal25" runat="server" Text="<%$ Resources:Content,GN000174%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_IPAddress" runat="server" />
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_IPAddress" runat="server" ControlToValidate="TxBx_IPAddress"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_CreatePTR" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Ltl_AsscoiatePTR" runat="server" Text="<%$ Resources:Content,SMI0464%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="CB_AssociatePTR" runat="server" Text=" " />
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_CName" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal29" runat="server" Text="<%$ Resources:Content,SMI0465%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_CNameRecord" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_CNameRecord" runat="server" ControlToValidate="TxBx_CNameRecord"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <%--<EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" TargetControlID="TxBx_CNameRecord"
                                            FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="_-." />--%>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_MailServer" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal31" runat="server" Text="<%$ Resources:Content,SMI0466%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_MailServer" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_MailServer" runat="server" ControlToValidate="TxBx_MailServer"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Invalid Mail Server Name. Please specify a Fully Qualified Domain Name(FQDN)."
                                            ControlToValidate="TxBx_MailServer" Display="none" ValidationGroup="DNS" SetFocusOnError="True"
                                            ValidationExpression="<%$ Resources:Content,REV001 %>" />--%>
                                        <%--<EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server" TargetControlID="TxBx_MailServer"
                                            FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="_-." />--%>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_Service" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="LTL_Service" runat="server" Text="<%$ Resources:Content,GN000170%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_Service" runat="server">
                                        <asp:ListItem Text="_finger" Value="_finger" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="_ftp" Value="_ftp"></asp:ListItem>
                                        <asp:ListItem Text="_http" Value="_http"></asp:ListItem>
                                        <asp:ListItem Text="_kerberos" Value="_kerberos"></asp:ListItem>
                                        <asp:ListItem Text="_ldap" Value="_ldap"></asp:ListItem>
                                        <asp:ListItem Text="_msdcs" Value="_msdcs"></asp:ListItem>
                                        <asp:ListItem Text="_nntp" Value="_nntp"></asp:ListItem>
                                        <asp:ListItem Text="_sip" Value="_sip"></asp:ListItem>
                                        <asp:ListItem Text="_sipfederationtls" Value="_sipfederationtls"></asp:ListItem>
                                        <asp:ListItem Text="_sipinternaltls" Value="_sipinternaltls"></asp:ListItem>
                                        <asp:ListItem Text="_telnet" Value="_telnet"></asp:ListItem>
                                        <asp:ListItem Text="_whois" Value="_whois"></asp:ListItem>
                                        <asp:ListItem Text="_autodiscover" Value="_autodiscover"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_Protocol" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="LTL_Protocol" runat="server" Text="Protocol" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_Protocol" runat="server">
                                        <asp:ListItem Text="_tcp" Value="_tcp" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="_tls" Value="_tls"></asp:ListItem>
                                        <asp:ListItem Text="_udp" Value="_udp"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <asp:Literal ID="Literal36" runat="server"></asp:Literal>
                                <asp:Label ID="Label9" runat="server" Visible="false"></asp:Label>
                            </div>
                        </div>
                        <div class="row" id="Tr_PrioritySRV" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="LTL_PrioritySRV" runat="server" Text="<%$ Resources:Content,GN0001300%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_PrioritySRV" Text="" runat="server" MaxLength="4"></asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FTE_PrioritySRV" runat="server" TargetControlID="TxBx_PrioritySRV"
                                            FilterType="Numbers,Custom" ValidChars="0123456789" />
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_PrioritySRV" runat="server" ControlToValidate="TxBx_PrioritySRV"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_Priority" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,SMI0467%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_MXPriority" runat="server" />
                                        <EM:FilteredTextBoxExtender ID="FTE_TxBx_MXPriority" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789"
                                            TargetControlID="TxBx_MXPriority">
                                        </EM:FilteredTextBoxExtender>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_MXPriority" runat="server" ControlToValidate="TxBx_MXPriority"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_Weight" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="LTL_Weight" runat="server" Text="<%$ Resources:Content,SPT002377%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Weight" Text="" runat="server" MaxLength="4"></asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FTE_TxBx_Weight" runat="server" TargetControlID="TxBx_Weight"
                                            FilterType="Numbers,Custom" ValidChars="0123456789" />
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_Weight" runat="server" ControlToValidate="TxBx_Weight"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_Port" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="LTL_Port" runat="server" Text="<%$ Resources:Content,GN0000565%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Port" Text="" runat="server" MaxLength="4"></asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FTE_TxBx_Port" runat="server" TargetControlID="TxBx_Port"
                                            FilterType="Numbers,Custom" ValidChars="0123456789" />
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_Port" runat="server" ControlToValidate="TxBx_Port"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_Host" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="LTL_Host" runat="server" Text="<%$ Resources:Content,SMI0468%>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Host" Text="" runat="server" MaxLength="61"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_Host" runat="server" ControlToValidate="TxBx_Host"
                                            Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                       <%-- <asp:RegularExpressionValidator ID="REV_TxBx_Host" runat="server" ErrorMessage="Invalid host Name. Please specify a valid Domain Name."
                                            ControlToValidate="TxBx_Host" Display="none" ValidationGroup="DNS" SetFocusOnError="True"
                                            ValidationExpression="<%$ Resources:Content,REV001 %>" />
                                        <EM:FilteredTextBoxExtender ID="FTE_TxBx_Host" runat="server" TargetControlID="TxBx_Host"
                                            FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="_-." />--%>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_Text" runat="server" visible="false">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,GN0000485%>" />:</label>
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <div class="form-group"><div class="form-line">
                                    <asp:TextBox ID="TxBx_Text" runat="server" Rows="5" Text="v=spf1" TextMode="MultiLine"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_Text" runat="server" ControlToValidate="TxBx_Text"
                                        Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div></div>
                                <br />
                                <div ID="Ltl_TXTNotice" runat="server"><%= Resources.Content.FAM00206 %></div>
                            </div>
                        </div>
                        <div id="Tr_HttpRedirect" runat="server">
                            <div class="row">
                                <div class="col-sm-2 col-xs-12 row-label">
                                    <label>*<asp:Literal ID="Literal11" runat="server" Text="Plug In Instance Display Name" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_InstanceDisplayName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_InstanceDisplayName" Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-2 col-xs-12 row-label">
                                    <label>*<asp:Literal ID="Literal13" runat="server" Text="Host Name" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_HostName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TxBx_HostName" Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </div>
                                        <br />
                                        <asp:CheckBox ID="Cb_IncludeSubNames" runat="server" Text="Including all sub-names" />
                                    </div>

                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-2 col-xs-12 row-label">
                                    <label>*<asp:Literal ID="Literal14" runat="server" Text="Redirect To" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_RedirectTo" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TxBx_RedirectTo" Display="None" ValidationGroup="DNS" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </div>
                                        <br />
                                        <asp:RadioButtonList ID="Rbl_URLType" runat="server">
                                            <asp:ListItem Text="Relative URL - append requested path and query" Value="0" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="Exact URL - optional substitutions (URL encoded): #HOST#, #PATH#, #QUERY#" Value="1"></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-2 col-xs-12 row-label">
                                    <label>*<asp:Literal ID="Literal15" runat="server" Text="Method" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:RadioButtonList ID="Rbl_Method" runat="server">
                                            <asp:ListItem Text="Status 302 Found (moved temporarily)" Value="0" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="Status 301 Moved Permanently" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="Cloaked - Hide redirect URL in frame page with title:" Value="2"></asp:ListItem>
                                        </asp:RadioButtonList>

                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_CloakedTitle" Enabled="false" runat="server"></asp:TextBox>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_Save" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction"
                                    ValidationGroup="DNS" runat="server" />
                                <asp:Button ID="Btn_Cancel" Text="<%$ Resources:Content,GN0000572%>" runat="server" class="btn btn-primary waves-effect" />
                            </div>
                        </div>
                    </asp:Panel>
                </div>
            </div>
        </asp:Panel>

        <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
            ShowMessageBox="True" ShowSummary="False" ValidationGroup="DNS" />
        <%--</ContentTemplate>
</ajax:UpdatePanel>--%>
        <%--SOA Record tab--%>

        <ajax:UpdatePanel ID="UPnl_SOARec" runat="server">
            <ContentTemplate>
                <div class="row" id="Pnl_SOA" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3><%= Resources.Content.SPT002168%></h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12" id="Td_ZoneNameSOA" runat="server"></div>
                                    <div class="col-sm-9 col-xs-12 hide" id="Td_ZoneNameValueSOA" runat="server">
                                        <asp:DropDownList ID="DropDownList1" AutoPostBack="true" runat="server">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-3 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,Dev633%>" EnableViewState="false" />:</label>
                                    </div>
                                    <div class="lbl-serial-num">
                                        <asp:Label ID="Lbl_SerialNumber" runat="server" />
                                    </div>
                                    <div class="col-xs-12 col-sm-2 col-md-2 padding-left-5px">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_SerialNumber" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_SerialNumber"
                                                    Display="None" ValidationGroup="DNS1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxBx_SerialNumber"
                                                    FilterType="Numbers,Custom" ValidChars="0123456789" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-5 col-md-6">
                                        Full Preview of current Serial Number =&nbsp;<asp:Label ID="Lbl_FullPreview" runat="server" Font-Bold="true" ForeColor="Green" />
                                        <br />
                                        <font class="font-color-blue"><b>Example Format:</b> YYYYMMDDnn, After editing date part of the Serial Number will be replaced with current date.</font>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*<asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,SMI900%>" EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_ResponsibleParty" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_ResponsibleParty"
                                                    Display="None" ValidationGroup="DNS1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,FAM0066%>" EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_PrimaryServer" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_PrimaryServer"
                                                    Display="None" ValidationGroup="DNS1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,String375%>" EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_RefInterval" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_TxBx_RefInterval" runat="server" ControlToValidate="TxBx_RefInterval"
                                                    Display="None" ValidationGroup="DNS1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" TargetControlID="TxBx_RefInterval"
                                                    FilterType="Numbers,Custom" ValidChars="0123456789" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_RefInterval" runat="server" AutoPostBack="true">
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0469%>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001132%>" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001133%>" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SPT0010059%>" Value="4"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,String376%>" EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_RetryInterval" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ValidationGroup="DNS1" ID="RFV_TxBx_RetryInterval" runat="server"
                                                    ControlToValidate="TxBx_RetryInterval" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" TargetControlID="TxBx_RetryInterval"
                                                    FilterType="Numbers,Custom" ValidChars="0123456789" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_RetryInterval" runat="server" AutoPostBack="true">
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0469%>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001132%>" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001133%>" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SPT0010059%>" Value="4"></asp:ListItem>
                                                <%--<asp:ListItem Text="Weeks" Value="5"></asp:ListItem>--%>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*<asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,SMI0470%>" EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_ExpInterval" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_TxBx_ExpInterval" runat="server" ControlToValidate="TxBx_ExpInterval"
                                                    Display="None" ValidationGroup="DNS1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" runat="server" TargetControlID="TxBx_ExpInterval"
                                                    FilterType="Numbers,Custom" ValidChars="0123456789" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_ExpInterval" runat="server" AutoPostBack="true">
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0469%>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001132%>" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001133%>" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SPT0010059%>" Value="4"></asp:ListItem>
                                                <%--<asp:ListItem Text="Weeks" Value="5"></asp:ListItem>--%>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>*<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,SMI0471%>" EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-1 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_MinTTL" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_TxBx_MinTTL" runat="server" ControlToValidate="TxBx_MinTTL"
                                                    Display="None" ValidationGroup="DNS1" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" TargetControlID="TxBx_MinTTL"
                                                    FilterType="Numbers,Custom" ValidChars="0123456789" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_MinTTL" runat="server" AutoPostBack="true">
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0469%>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001132%>" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0001133%>" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SPT0010059%>" Value="4"></asp:ListItem>
                                                <%--<asp:ListItem Text="Weeks" Value="5"></asp:ListItem>--%>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:ValidationSummary ID="VS_DNS" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                            ShowMessageBox="True" ShowSummary="False" ValidationGroup="DNS1" />

                                        <asp:Button ID="Btn_SaveSOA" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" runat="server" ValidationGroup="DNS1" />
                                        <asp:Button ID="Btn_CancelSOA" Text="<%$ Resources:Content,GN0000572%>" runat="server" class="btn btn-primary waves-effect" Visible="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </ajax:UpdatePanel>

        <%--<ajax:UpdatePanel ID="UPnl_WebRedirect" runat="server">
            <ContentTemplate>--%>
        <div class="row" id="Pnl_WebRedirect" runat="server">
            <div class="col-xs-12">
                <div id="Pnl_RedirectRuleListing" runat="server">
                    <div class="card Div_OpsRow" id="Div_OpsRow2" runat="server">
                        <div class="header">
                            <h3><%= Resources.Content.GN00001320%></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_AddRedirectRule" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,AddRedirectRule%>" CausesValidation="false" />
                                    <asp:Button ID="Btn_RemoveRedirectRule" runat="server" Custom1="Custom" Style="display: none"
                                        Text="<%$ Resources:Content,GN0000278%>" CssClass="btn btn-primary waves-effect" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <br />

                    <div class="card">
                        <div class="header">
                            <h3><%= Resources.Content.WebRedirect%></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <%= Resources.Content.RedirectRulesNote.Replace("%href%", MachSol.MachPanel.Utility.Utility.GetBaseURLForAppStart().TrimEnd("/") & "/Rcc/Hostmatic/GroupActions.aspx") %>
                                </div>
                                <div class="col-xs-12">
                                    <asp:GridView ID="GV_RedirectRules" runat="server" AllowPaging="true" CssClass="table table-bordered table-striped table-hover"
                                        AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                        <Columns>
                                            <asp:TemplateField SortExpression="RuleName" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                <HeaderTemplate>
                                                    <asp:CheckBox runat="server" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');"
                                                        Text=" " />
                                                    <asp:Literal runat="server" Text="<%$ Resources:Content,DGN1110008%>"></asp:Literal>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox Text=" " ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                    <asp:Label ID="LB_RuleName" runat="server"></asp:Label>                                                    
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField SortExpression="AliasName" HeaderText="<%$ Resources:Content,GN000173%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_AliasName" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField SortExpression="RedirectURL" HeaderText="<%$ Resources:Content,strRedirectUrl%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_RedirectURL" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <%--PagerTemplate Start--%>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager4" runat="server" />
                                        </PagerTemplate>
                                        <%--PagerTemplate End--%>
                                    </asp:GridView>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="card" id="Pnl_AddRedirectRule" runat="server">
                    <div class="header">
                        <h3><%= Resources.Content.AddRedirectRule%></h3>
                    </div>
                    <div class="body">
                        <%--<div class="row">
                            <div class="col-xs-12 col-sm-2 row-label">
                                <label>
                                    *<asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,DGN1110008%>" EnableViewState="false" />:</label>
                            </div>
                            <div class="col-xs-12 col-sm-4">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_RuleName" runat="server"></asp:TextBox>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_RuleName" runat="server" ControlToValidate="TxBx_RuleName"
                                            Display="None" ValidationGroup="WebRedirect" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>--%>
                        <div class="row">
                            <div class="col-xs-12 col-sm-2 row-label">
                                <label>
                                    <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,GN000173%>" EnableViewState="false" />:</label>
                            </div>
                            <div class="col-xs-12 col-sm-2">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_AliasName" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="lbl-serial-num padding-left-0px">
                                <asp:Label ID="Lbl_RuleNameZone" runat="server" />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12 col-sm-2 row-label">
                                
                            </div>
                            <div class="col-xs-12 col-sm-10">
                                <b><u>Notice:</u></b><br />For root level redirection, leave host name blank.<br />For wildcard redirection, input * as host name.
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12 col-sm-2 row-label">
                                <label>
                                    *<asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,strRedirectUrl%>" EnableViewState="false" />:</label>
                            </div>
                            <div class="col-xs-12 col-sm-4">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_RedirectUrl" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_TxBx_RedirectUrl" runat="server" ControlToValidate="TxBx_RedirectUrl"
                                            Display="None" ValidationGroup="WebRedirect" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator Display="none" ValidationExpression="^(ht|f)tp(s?)://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$"
                                            SetFocusOnError="true" ValidationGroup="WebRedirect" ControlToValidate="TxBx_RedirectUrl" ID="REV_TxBx_RedirectUrl" runat="server"
                                            ErrorMessage='<%$ Resources:Content,String309%>'></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12 col-sm-5 col-md-6">
                                <b>For Example:</b><br />http://www.domain.com , https://www.domain.com
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:ValidationSummary ID="ValidationSummary3" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="WebRedirect" />

                                <asp:Button ID="Btn_SaveRedirectRule" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" runat="server" ValidationGroup="WebRedirect" />
                                <asp:Button ID="Btn_CancelRedirectRule" Text="<%$ Resources:Content,GN0000572%>" runat="server" class="btn btn-primary waves-effect" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <%--</ContentTemplate>
        </ajax:UpdatePanel>--%>
    </div>
</div>

<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender2.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_PrioritySRV.ClientID%>');
    <%--AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_Host.ClientID%>');--%>
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender5.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender6.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender7.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender8.ClientID%>');
    <%--AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender9.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender10.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender11.ClientID%>');--%>
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_MXPriority.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_Port.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_Weight.ClientID%>');
    <%--AllowArrowKeysInFilteredTextBoxExtender('<%=FTB_DomainName.ClientID%>');--%>
</script>
