Re: How to pass username in the login control to next page?
- From: "kai" <kailiang@xxxxxxxxxxxxx>
- Date: Mon, 3 Sep 2007 11:11:42 -0400
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
.
- References:
- How to pass username in the login control to next page?
- From: kai
- Re: How to pass username in the login control to next page?
- From: Mark Fitzpatrick
- How to pass username in the login control to next page?
- Prev by Date: Re: How to pass username in the login control to next page?
- Next by Date: Re: Forms Authentication with Active Directory
- Previous by thread: Re: How to pass username in the login control to next page?
- Index(es):
Relevant Pages
|
|