<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SrchByDlTag1.aspx.cs" Inherits="FB80003.SrchByDlTag1" MasterPageFile="Site.Master" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolderBody">
<div class="panel panel-success">
	<div class="panel-heading">
		<a id="homeBtn" class="btn btn-default btn-xs" href="Index.aspx" role="button"><span class="glyphicon glyphicon-home"></span></a>&nbsp;
		Search for Dog Tag Number
	</div>
	<div class="panel-body">
	<form name="dltagsearch" action="SrchByDlTag2.aspx" method="POST" class="gremlins-test">
		<div class="form-group">
			<label for="tagnum">Tag number:</label>
            <% if (Request.QueryString["tagnum"] != null) { %>
			<input type="number" min="10" max="99999" id="tagnum" name="tagnum" pattern="/^\d{2,5}$/" onKeyPress="if(this.value.length==5){return false;}" class="form-control gremlins-test" required="required" value="<% Response.Write(Request.QueryString["tagnum"]); %>"/><br/>
            <% } else { %>
			<input type="number" min="10" max="99999" id="tagnum" name="tagnum" pattern="/^\d{2,5}$/" onKeyPress="if(this.value.length==5){return false;}" class="form-control gremlins-test" required="required"/><br/>
            <% } %>
		</div>
		<input type="submit" id="submitBtn" class="btn btn-success btn-sm gremlins-test" value="Search"/>
        <br><div id="formHELP" style="font-weight:normal"><small>Note: minimum of 2, maximum of 5 numbers required to light up the Search button.</small></div><br/>
	</form>
	</div>
    <br />
</div>
</asp:Content>
