|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Intranet Application
Hi,
I 'm making a Software Licensing Management Application atm. I need to be able to get the users Computer Name. Is this possible with ASP.NET/C#? I thought I might be able to use C# string CompName CompName = Request.UserHostName But as I'm not currently using an internal Dev Srv, I was wondering if this would work? I have just downloaded VMware and going to dump windows 2000 Adv Srv on tomorrow to test this thing out, just hope it does work. |
|
#2
|
|||
|
|||
|
Hey Nigorr
I just like to note 1 thing when you wanna get the value of a server variables, your use this syntax Page.Request.ServerVariables["variablename"] Not Request.Variablename ... I dunno the variable for the computername... but you can iterate thru Page.Request.ServerVariables as its a hash table collection
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ |
|
#3
|
|||
|
|||
|
Really? At msdn they gave me the above, it worked for me..?
What do you mean by a "Hash Table" |
|
#4
|
|||
|
|||
|
Also I'm not after the server's name, I'm after the computer that is connected to the server. Can I do that? Preferably without an activeX control.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Intranet Application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|