<%@ control language="VB" autoeventwireup="false" inherits="RCC_VPS_CC_AddDNS, MachSol.MachPanel.Web" %>

<div class="row">
    <div class="col-xs-12">
        <asp:Literal ID="Ltl_IpAddressSettings" runat="server" Text='<%$ Resources: Content,HVServer121 %>'></asp:Literal>
    </div>

    <div class="col-xs-12">
        <asp:Literal ID="Ltl_DNSCSVList" runat="server" Text='<%$ Resources: Content,HVServer120 %>'></asp:Literal>

        <asp:RegularExpressionValidator ID="REV_TxBx_DNSServers" runat="server" ErrorMessage='DNS Address format is invalid. Valid example: 8.8.8.8,8.8.8.4'
            ControlToValidate="TxBx_DNSServers" Display="None" SetFocusOnError="True" ValidationExpression="^((((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\,?)*)-?)*$"
            ValidationGroup="DNSAddresses"></asp:RegularExpressionValidator>
        &nbsp;&nbsp;
            <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_TxBx_DNSServers"
                ErrorMessage='One or more DNS Addresses are required.' ControlToValidate="TxBx_DNSServers"
                ValidationGroup="DNSAddresses" Display="None">
            </asp:RequiredFieldValidator>
    </div>

    <div class="col-xs-12">
        <asp:TextBox ID="TxBx_DNSServers" runat="server" MaxLength="200" TextMode="MultiLine"
            Width="100%" Height="50"> </asp:TextBox>
    </div>

    <div class="col-xs-12">

        <asp:Button ID="btnAddDNSServers" runat="server" Text='<%$ Resources: Content,HVServer119 %>' ValidationGroup="DNSAddresses" CssClass="btn btn-primary btnAction"></asp:Button>
        <asp:Button ID="btnCancelDNSServers" runat="server" Text='<%$ Resources: Content,GN0000572 %>' CausesValidation="false" CssClass="btn btn-primary"></asp:Button>

    </div>
</div>
<asp:ValidationSummary ID="VS_AddDNS" ValidationGroup="DNSAddresses" DisplayMode="BulletList"
    ShowSummary="false" ShowMessageBox="true" HeaderText="One or more inputs for DNS Addresses is invalid." runat="server" />
