473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

found computer username C#, asp

30
Hi, when I use:
string name = Page.User.Identity.Name;
or
string name = Request.LogonUserIdentity.Name;

I found computer name\username (who login)
for example: Computer2\Jhon

But, how find only username(login)
for example: Jhon
Jul 24 '08 #1
3 1563
Curtis Rutland
3,256 Expert 2GB
use the .Split method. Split the string around the backslash, and only use the 2nd part.
Jul 24 '08 #2
Smurfas
30
Thanks,
but don't know function which show only username(login)?


Now whit Split function webpage had loaded, crammed.
Jul 24 '08 #3
Curtis Rutland
3,256 Expert 2GB
Thanks,
but don't know function which show only username(login)?
There isn't a function that just shows the username. You have to parse it yourself.

Now whit Split function webpage had loaded, crammed.
I must apologize, but I have no idea what you meant here. Please clarify.
Jul 24 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: TIML | last post by:
I have tried using servervariables("XXX") to request the username and computer name of the individual running code on our internal server, but what I want and can't seem to capture is the user's...
6
by: EMW | last post by:
Hi, For tracing and other thing I need to know the username of the user who is logged in to the pc on which (s)he is running my ASPX page. I was using:...
0
by: meetmaruthi | last post by:
Hai i am searching a database (in ms access ) to validate user info.it has two fields username and password. here is the coding and i get compile error:Method or data member not found.please help...
1
by: kowndinya | last post by:
i want to know the username who is working on a particular computer.(Remote computer) I know already the computer name which is listed in a combo box. Is there any way to get username? please...
2
by: Heike Pertzel | last post by:
Hallo NG! I would like to get the name of the user logged on on a another computer. I've written the following code which gives me the LogonId of this user. But getting with this Id the name of...
3
by: smartic | last post by:
My problem is when i login to my website it says can't found the page in inernet explore only when i refresh the page i login to the page, that is my code in the login page: <?php...
12
by: MikeSA | last post by:
Hi The idea is to record and store the computer user's ID in a record, so that I can track which user created or altered the record. Eg. A certain user creates a quotation in a table called 'Orders'...
0
xxoulmate
by: xxoulmate | last post by:
how to extract username of computer using nbtstat., in dos mode i use nbtstat -a computername then it list down all the workgroup,the computername,and the username was there but the problem., is...
8
by: webgenius | last post by:
Whenever I click the SUBMIT button in my HTML page, I get the "Object not found!" error. It was working fine yesterday. This error started to occur after I installed Codelobster and made some changes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.