<%@ Page Language="vb" %>
<html>
<head>
<title>Displaying the authentication status in ASP.NET</title>
</head>
<body>
<p>
<%
Dim boolAuth As Boolean
boolAuth = Request.IsAuthenticated
If boolAuth Then
Response.Write("User " & Page.User.Identity.Name & " is authenticated.")
Else
Response.Write("Current user is not authenticated.")
End If
%>
</p>
</body>
</html>
|