<%@ Page Language="c#" Codebehind="LogIn.aspx.cs" AutoEventWireup="True" Inherits="Tjenestetorget.Administrator.LogIn"
    MasterPageFile="~/Kundeadministrator.master" EnableEventValidation="false" %>

<asp:Content ID="content1" ContentPlaceHolderID="Main" runat="server">
    <h4>
        Logg inn</h4>
    <table>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server">Brukernavn: </asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtUsername" runat="server" Width="150px" MaxLength="20"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Du må angi et brukernavn."
                    ControlToValidate="txtUsername" Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server">Passord: </asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="150px" MaxLength="20"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage="Du må angi et passord." Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="right">
                <asp:Button Text="Logg inn" ID="btnOK" runat="server" OnClick="btnOK_Click"></asp:Button>
            </td>
            <td>
                <asp:Label ID="lblLoginException" runat="server" BorderColor="Red" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    <br>
    </form>

    <script language="javascript" type="text/javascript">
			<!--
				var element = document.getElementById('txtUsername');
				
				if(element != null)
				{
					element.focus();
				}
			// -->
    </script>

</asp:Content>
