<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="QPulseRestService.Login" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style1
    {
        width: 160px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div>
    <table style="width:500px; height: 110px;">
        <tr>
            <td align="Right">
                <asp:Label ID="Label1" runat="server" Text="Username"></asp:Label>
            </td>
            <td class="style1">
                <asp:TextBox ID="UserNameTextBox" runat="server" Width="100%"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="UserNameRequiredFieldValidator" runat="server" 
                    ErrorMessage="Username is required." ControlToValidate="UserNameTextBox"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="Right">
                <asp:Label ID="Label2" runat="server" Text="Password"></asp:Label>
            </td>
            <td class="style1">
                <asp:TextBox ID="PasswordTextBox" runat="server" Width="100%" 
                    TextMode="Password"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="PasswordRequiredFieldValidator" runat="server" 
                    ErrorMessage="Password is required." ControlToValidate="PasswordTextBox"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td></td>
            <td align="Right" class="style1">               
                <asp:Button ID="LoginButton" runat="server" Text="Login" onclick="LoginButton_Click" />               
            </td>
            <td align="Left">               
                <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Username or password is invalid."></asp:CustomValidator>               
            </td>
        </tr>
    </table>
    </div>
</asp:Content>