How to pass username in the login control to next page?



Hi, All
I have VB 2005, I use login control to logn in, after log in, I go to
another page. I want to use the login username in another, how to use
session varible to pass the username?

I use the following code, but I cannot login:


Protected Sub Login1_Authenticate1(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.AuthenticateEventArgs)

Session("username") = Login1.UserName

End Sub


Please help
Thanks
Kai


.



Relevant Pages

  • Re: Security in Exchange 2003
    ... for sure that the login name matches the email alias.... ... Mitch McDermid wrote: ... > In Exchange that is in an AD domain, the login username ... > and the exchange e-mail are the same. ...
    (microsoft.public.exchange.admin)
  • Re: How to pass username in the login control to next page?
    ... would access their username through their authentication typically. ... I have VB 2005, I use login control to logn in, after log in, I go to ... Protected Sub Login1_Authenticate1(ByVal sender As Object, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • A simple Login Application using VS2005 Visual Web Express
    ... I wanted to develop a very simple login application by using VS 2005 Visual Web Express. ... LoginStatus1 control ... If user is admin, load the page called demo and display everything on this page ... Protected Sub Login1_LoggedInHandles Login1.LoggedIn ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 2 questions please
    ... The login control is in the anonymous template and a staus view is in ... How can I set focus to the UserName textbox of the LogIn ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to pass in username as query parameter?
    ... I need to pass in the username of the login user. ... In addition to the query parameter I set up in the datasource, ... Protected Sub SqlDataSource1_Selecting(ByVal sender As Object, ...
    (microsoft.public.dotnet.framework.aspnet)