Capture Login Name at string

Discussion in 'ASP .Net Building Controls' started by Ann, Jun 1, 2007.

  1. Ann

    Ann Guest

    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.
    Ann, Jun 1, 2007
    1. Advertisements

  2. Ann

    PlatinumBay Guest


    You can get the username with the following code:


    Hope this helps,

    PlatinumBay, Jun 4, 2007
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.