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



Thanks Mark.

Kai

"Mark Fitzpatrick" <markfitz@xxxxxxxxxx> wrote in message
news:uVcsa9O7HHA.1188@xxxxxxxxxxxxxxxxxxxxxxx
After a user is logged in they should be authenticated. This means you
would access their username through their authentication typically. Try
using Page.User.Identity.Name


--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage


"kai" <kailiang@xxxxxxxxxxxxx> wrote in message
news:LrdCi.6391$Y7.2971@xxxxxxxxxxxxxxxxxxxxxxxxx
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: 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)
  • 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)
  • Problem handling Login control Authenticate event
    ... login process. ... required for login… they have a username, password, and another “location ... and when the extra input field is submitted ... for the users where this concatenation of the two input field ...
    (microsoft.public.dotnet.framework.aspnet)
  • eFiction <= 2.0 multiple vulnerabilities
    ... "Efiction is a software program that enables users to run automated original or fanfiction ... if magic_quotes_gpc off -> Login bypass: ... username: 'UNION SELECT 'd41d8cd98f00b204e9800998ecf8427e',penname,uid,userskin,level,email FROM fanfiction_authors where level=1/* ...
    (Bugtraq)
  • RE: unable to login as user
    ... unable to login as user ... Log in as root and look closely at the user account. ... the system just seems to hang and then go back to the username ...
    (RedHat)