DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 1 Jun 2007 12:08:02 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.buildingcontrols        back       

Thread Index
  1    Ann
          2    PlatinumBay am


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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us