|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Defining envrionment variables = username/workgroup/domain name
Hey guys
A little more complicated this one:- in vb.net if I wanted to find out my username and domain name I could do: Public uname As New String(Environment.UserName) Public domain As New String(Environment.UserDomainName) My question to you geniuses out there - is it possible to do similar in asp, and if so, how? Cheers in advance! Chris |
|
#2
|
|||
|
|||
|
Have a look at Server Variables
Here... http://www.4guysfromrolla.com/webtech/092298-3.shtml Hope this helps! Sincerely Vlince |
|
#3
|
|||
|
|||
|
Thanks for that, and yes it does help
However, i've already tried that option, with limited success. You see, to gain the clients domain/login name I would need to set up IIS to not allow anonymous logins to my server. As this is going to be part of a multi-company wide application, it will be cause a lot of grief, as well as a high potential to fail. Instead, I was thinking of gaining the domain name and log in through the thin client which will sit in the clients system tray, and if it deems it necessary to connect to a specific page, then it can transmit the necessary info which I wouldnt normally be able to get. My problem is, is to convert what i've just said in the previous para, into vb.net code :/ all i'd need is the bit to say "open a new browser, go to this URL, and add some info on which you already got". Chris |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Defining envrionment variables = username/workgroup/domain name |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|