[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Ann

6/1/2007 7:08:00 PM

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.



1 Answer

PlatinumBay

6/4/2007 5:56:00 AM

0

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.
>
>
>