Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2007, 01:25 AM
Authorized User
 
Join Date: Jul 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to get the LAN ID and insert into database ?

Dear All ,

 How can I captured the username (LAN ID) of users in my website and insert it into a sql server database using forms ? Please help me ~~

 
Old August 15th, 2007, 03:51 AM
Authorized User
 
Join Date: Jul 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've tried this -- >

 Sub Page_Load()
 lblComputerName.Text = my.Computer.Name.ToString
 End Sub

 and assigned it to a label .. and it works ..

 .. How on earth can i then insert this into a database using
    '<%#Bind (""))' method ?
 .. I've tried to put the method into a label but, it came out an
 error saying the lblCOmputerName.Text not declared..

 Please help me ..






Similar Threads
Thread Thread Starter Forum Replies Last Post
How To insert auto increment ID to other table ibrhaim ASP.NET 1.0 and 1.1 Professional 4 December 8th, 2006 02:26 PM
Get the ID generated from the previous INSERT oper nappiness Classic ASP Basics 3 January 11th, 2006 07:13 PM
get recordet id after insert keyvanjan Classic ASP Databases 5 May 14th, 2005 05:15 AM
ASP Insert - Get Record ID llowe Classic ASP Databases 2 March 24th, 2004 11:11 AM
Insert new record ID levinho Classic ASP Databases 5 January 14th, 2004 12:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.