hi,
don't know why Context.User.Identity.Name is coming out Empty? any suggestions
don't know why Context.User.Identity.Name is coming out Empty? any suggestions
Code:
<%@ Page language="VB" %>
<html>
<head>
<title>Forms Authentication</title>
<script runat=server>
Sub Page_Load ( Src As Object, E As EventArgs )
Welcome.InnerHtml = "Hello, " + Context.User.Identity.Name
End Sub
Sub Signout_Click ( sender As Object, E As EventArgs )
FormsAuthentication.SignOut ( )
Response.Redirect ( "Login.aspx" )
End Sub
</script>
<body>
<h3>Using Forms Authentication</h3>
<span id="Welcome" runat=server/>
<form runat=server>
<p><input type="submit" onServerClick="Signout_Click" Value="Signout"
runat="server"/>
</form>
</body>
</html>