<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reset.aspx.cs" Inherits="Cybersecurity.Reset" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>CyberSecurity</title>
    <link href="Content/bootstrap.min.css" rel="stylesheet"/>
    <script src="Scripts/jquery-3.0.0.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div >

        <h2>Reset Form</h2>
        <br />
    
        <div class="form-group">
            
            <div class="form-group row">
                <label for="txtEmail" class="col-sm-1 col-form-label">Email address:</label>

                <div class="col-sm-2">
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                </div>
                <div class="col-sm-4">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtEmail"  ErrorMessage="Please Enter Your Username" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ClientValidationFunction="changeColor" ForeColor="Red" 
                        ControlToValidate="txtEmail" ErrorMessage="Invalid Email Format"></asp:RegularExpressionValidator>
                </div>
            </div>
                        
            
            <div class="form-group row">
                
                <div class="col-sm-1 text-center">
                    <asp:Button ID="btnReset" class="btn btn-warning" runat="server" Text="Send email" OnClick="btnReset_Click" />
                </div>
                <div>
                    <asp:Label ID="lblErrorMessage" runat="server" ForeColor="Red" ></asp:Label>
                </div>
            </div>            
        </div>
    
    </div>
    </form>
</body>
</html>
