PlatinumBay
6/4/2007 5:56:00 AM
Ann,
You can get the username with the following code:
Context.User.Identity.Name
Hope this helps,
Steve
"Ann" <Ann@discussions.microsoft.com> 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.
>
>
>