<%@ Page Language="vb" %>
Displaying the authentication status in ASP.NET
<%
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
%>