Capture Login Name at string

A

Ann

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

PlatinumBay

Ann,

You can get the username with the following code:

Context.User.Identity.Name

Hope this helps,


Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top