ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 8th, 2003, 04:46 AM
Pain Pain is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Sheffield, UK
Posts: 94 Pain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to Pain
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

Reply With Quote
  #2  
Old September 8th, 2003, 07:53 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Have a look at Server Variables

Here...
http://www.4guysfromrolla.com/webtech/092298-3.shtml


Hope this helps!
Sincerely

Vlince

Reply With Quote
  #3  
Old September 8th, 2003, 08:10 AM
Pain Pain is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Sheffield, UK
Posts: 94 Pain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to Pain
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Defining envrionment variables = username/workgroup/domain name


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway