CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 5/16/2006 2:14:33 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
dxdiag
Asp.Net User
How to insert Loginname's data into database?5/16/2006 2:14:33 AM

0/0

Cant find any threads that can help. So decided to post. Pardon me if im making a post on repeated topic.

 

 

Im using the Login function provided in the asp.net 2.0 (vb) Is there any way to capture the loginname data and insert it into my database? As for example, Logged in as Dxdiag and wanted to borrow something. After i key in the other necessary information needed for the loan and click submit, it will capture my loginname into the database too.  Please help and thank you very much.

niclarke
Asp.Net User
Re: How to insert Loginname's data into database?5/16/2006 11:19:17 AM

0/0

Hi,

I have copied this from my C# code, but I guess it will be the same:

//Get the user
MembershipUser user = Membership.GetUser();

//Get the Guid key for the user
//Could you this to link to the ASP.Net aspnet_Users table
user.ProviderUserKey

//Get the username (login name)
user.UserName

Hope this helps,
Nick
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
MCITP SQL Server 2005 Database Administration Exam Guide: (Exams 70-431, 70-443, And 70-444) Authors: Darril Gibson, Pages: 752, Published: 2007
Beginning SQL Server 2005 Administration Authors: Dan Wood, Chris Leiter, Paul Turley, Pages: 574, Published: 2006
Beginning Visual Basic 2005 Databases Authors: Thearon Willis, Pages: 736, Published: 2006
Database Programming with VB.NET: Based on Beta 2. Authors: Carsten Thomsen, Pages: 472, Published: 2001
Database Programming with Visual Basic .NET Authors: Carsten Thomsen, Pages: 959, Published: 2002
The Definitive Guide to MySQL 5 Authors: Michael Kofler, David Kramer, Pages: 748, Published: 2005
Database Programming with C# Authors: Carsten Thomsen, Pages: 667, Published: 2002
Professional SQL Server 2005 Administration Authors: Brian Knight, Ketan Patel, Wayne Snyder, Jean-Claude Armand, Ross LoForte, Brad McGehee, Steven Wort, Joe Salvatore, Haidong Ji, Pages: 735, Published: 2006
MCITP SQL Server 2005 Database Developer All-in-One Exam Guide (Exams 70-431, 70-441 & 70-442): Exams 70-431, 70-441, and 70-442 Authors: Darril Gibson, Pages: 903, Published: 2008
MCSE SQL Server 2000 Database Design and Implementation: SQL Server 2000 Database Design and Implementation Authors: Thomas Moore, Ed Tittel, Pages: 928, Published: 2003

Web:
How to insert Loginname's data into database? - ASP.NET Forums Im using the Login function provided in the asp.net 2.0 (vb) Is there any way to capture the loginname data and insert it into my database? ...
Extracting data into Excel or text file from SQL Server « Systems ... Jan 24, 2008 ... And now, let’s insert the data into it using the two options ... OLEDB.4.0′, ‘ Excel 8.0; Database=C:\Login_Data.xls;’, ‘SELECT loginname, ...
Insert LoginName to a hyperlink? - ng.asp-net-forum.security - Fix ... Insert LoginName to a hyperlink?, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.security, Date: 4/4/2007 ... NET to insert a record into a database. ...
SQL Server programming Query help please. Change your data as the following and your query will work: INSERT INTO # LoginName (RoleName, members, UserId) VALUES('db_owner', ...
Using DDL Triggers in SQL Server 2005 to Capture Schema Changes ... Aug 13, 2007 ... Insert the event data into our changelog table. ... I used the LoginName element from EVENTDATA() because it returns the login associated ...
Insert using ODBC connection to access [Archive] - WebDeveloper.com I am trying to insert data into a database but keep getting the error .... jobdescription, qualifications, loginname, password, picture) ...
#!/usr/bin/env python """ Import Mantis bugs into a Trac database ... Dec 19, 2006 ... loginNameCache[userid] = loginName return self. ..... except: errorStr = " * ERROR: couldnt insert attachment data into database with %s" ...
PHP - INSERT Command Not Inserting Into Database | DreamInCode.net or die("Couldn't connect to the database."); $today = date ("Y-m-d"); $sql = " INSERT INTO Member(loginName, createDate, password, firstName, lastName, ...
SQL Server: Troubleshooting Logon Triggers Oct 23, 2008 ... Then we parse the XML variable to insert data into the previously ... and changed the following line to cast the LoginName to 10 characters: ...
vbCity/DevCity.NET Forums :: Visual Basic 6 :: VB6 Newbies ... now the problem is when i continue to execute the insert into ... this is the current code ,when save after data to sql database after first ...




Search This Site:










how to assigne a role when not using membership

same datagrid on different pages

what forum is this?

sitemap error: could not find the sitemap node with url

ttt gallery - installation problems - please help

howto automatically identify domain users as well as allowing anonymous users

how to create ssl security pages?

pass a variable from a master page to a content page

allow uploads from gallery

news feed module, not formatting ...

get string

how to access data access layer from the business entity

mac + .net = :-( why?

run console sample

localizing sitemap

free image gallery control at ssoss.com

css trick: make those portals look perfect in most browsers apply special styles to ie alone

trouble accessing events of user controls from main form

http alias - does it work in dnn 4.0

2.0 skinning - long user names

portal store 6.2 advice needed

any comments or suggestions for this code?

urgent help needed (.net)

help please / string variables?

can anyone convert this to asp.net

date in the future with validator

directoryinfo create() fileiopermission exception

adrotator on master page not visible on public access

not allow user to save senaative info.

use of sql server 2005

 
All Times Are GMT