<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form2" runat="server">
	<div>    
		<asp:LoginView id="LoginView1" runat="server">
			<AnonymousTemplate>
				<asp:HyperLink ID="HyperLink1" Runat="server"
			NavigateUrl="~/Login.aspx">Efetuar Login</asp:HyperLink>
			</AnonymousTemplate>
			<LoggedInTemplate>
				Olá, <asp:LoginName id="LoginName1" runat="Server"></asp:LoginName>
			</LoggedInTemplate>
			<RoleGroups>
				<asp:RoleGroup Roles="Administradores">
					<ContentTemplate>
						<asp:LoginName id="LoginName2"
					runat="Server"></asp:LoginName>, você está logado como administrador.
					</ContentTemplate>
				</asp:RoleGroup>
			</RoleGroups>
		</asp:LoginView>
        <p />
        <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Restrito/Admin.aspx" runat="server">Administradores</asp:HyperLink>
        <br />
        <br />
        <asp:HyperLink ID="HyperLink2" NavigateUrl="~/Clientes/Cliente.aspx" runat="server">Clientes</asp:HyperLink>
	    <p />
            <a href="Exemplo.aspx">Exemplo.aspx</a></div>
</form>

</body>
</html>
