Capture Login Name at string
I have a formview control that I want to capture the login name and add it to
the database when the insert template is used. I use the asp:loginview
control and can see the login name, but I want capture that as a string and
add it to a sql database column. How do I do that?
Thank you for your time.
Date:Fri, 1 Jun 2007 12:08:02 -0700
Author:
|
Re: Capture Login Name at string
Ann,
You can get the username with the following code:
Context.User.Identity.Name
Hope this helps,
Steve
"Ann" wrote in message
news:9859D5D9-53B1-4E47-91F2-3C18933C2D9B@microsoft.com...
>I have a formview control that I want to capture the login name and add it
>to
> the database when the insert template is used. I use the asp:loginview
> control and can see the login name, but I want capture that as a string
> and
> add it to a sql database column. How do I do that?
>
>
> Thank you for your time.
>
>
>
Date:Mon, 4 Jun 2007 01:56:24 -0400
Author:
|