473,396 Members | 1,916 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.

Read Client Environment Variable

B N
A quick question:

How do I read client side environment variables using ASP.NET ?

What I want to do is:
1. users open a webpage
2. the page should collect all the information eg login name, domain,
Windows version etc
3. store the information in database.

I will be glad if anyone can share their experience or point me to correct
direction.

thanks,
BN
Oct 5 '06 #1
4 4550
Hi,

B N wrote:
A quick question:

How do I read client side environment variables using ASP.NET ?

What I want to do is:
1. users open a webpage
2. the page should collect all the information eg login name, domain,
Windows version etc
3. store the information in database.

I will be glad if anyone can share their experience or point me to correct
direction.

thanks,
BN
I sincerely hope that you realize that the only way to do that (at least
in normal security conditions) is to ask the user to fill the data
manually...

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 5 '06 #2
B N
Hello Laurent,

"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
Hi,

B N wrote:
>A quick question:

How do I read client side environment variables using ASP.NET ?

What I want to do is:
1. users open a webpage
2. the page should collect all the information eg login name, domain,
Windows version etc
3. store the information in database.

I will be glad if anyone can share their experience or point me to
correct direction.

thanks,
BN

I sincerely hope that you realize that the only way to do that (at least
in normal security conditions) is to ask the user to fill the data
manually...

HTH,
Laurent
Thanks for your reply.
I was thinking about that for a while.
But I was not sure so I could not say "that is impossible" using ASP unless
user do it manually.
Although it is not Javascipt list I would just like to know if my problem
can be solved using javascript.

Thanks again for your help.

BN
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Oct 5 '06 #3
Hi,

B N wrote:
Hello Laurent,

Thanks for your reply.
I was thinking about that for a while.
But I was not sure so I could not say "that is impossible" using ASP unless
user do it manually.
Although it is not Javascipt list I would just like to know if my problem
can be solved using javascript.
No, it's not possible. JavaScript has a very strict sandbox.

The only way I can imagine it even remotely possible would be to use a
signed ActiveX, the user approving its use, and trying to get the data.
But even then I cannot guarantee that it will work. Besides, with all
the phishing sites nowadays, I would recommend against it anyway.

HTH,
Laurent
>
Thanks again for your help.

BN
Oct 5 '06 #4
B N
Thanks Laurent.
Bikrant
"Laurent Bugnion, GalaSoft" <ga*********@bluewin.chwrote in message
news:eb**************@TK2MSFTNGP04.phx.gbl...
Hi,

B N wrote:
>Hello Laurent,

Thanks for your reply.
I was thinking about that for a while.
But I was not sure so I could not say "that is impossible" using ASP
unless user do it manually.
Although it is not Javascipt list I would just like to know if my problem
can be solved using javascript.

No, it's not possible. JavaScript has a very strict sandbox.

The only way I can imagine it even remotely possible would be to use a
signed ActiveX, the user approving its use, and trying to get the data.
But even then I cannot guarantee that it will work. Besides, with all the
phishing sites nowadays, I would recommend against it anyway.

HTH,
Laurent
>>
Thanks again for your help.

BN

Oct 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Albretch | last post by:
that was set up for and/or by this user in the OS. Say, you set WEB_DIR as an environment variable pointing to certain folder or root directory Could you go like this <?xml version='1.0'...
6
by: Yechezkal Gutfreund | last post by:
I have been using the following code (successfully) to read Xml formated text packets from a TCP stream. The output from the server stream consists of a sequence of well formed Xml documents...
9
by: Eugene | last post by:
I am trying to use db2batch from my XP client against a remote database. And here's what I am getting: C:\work\Tuning\DB2\db2batch> db2batch -d oakl0 -a fs/fs -f db2batch.sql Running in...
2
by: Vinay | last post by:
Hi We can use Environment class to read %Temp% variable o local machine. But I want to read this variable for currently logged on used for remote machine. Is there anyway to do this using .NET? I...
2
by: Steven | last post by:
I have an asp.net application written in VB.net. I want to access a client side environment variable. For instance, we set an environment variable for the UserName. So, I write the code for...
7
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I...
17
by: Ryan Liu | last post by:
Hi, If I have many threads write to a variable(e.g. var++) and another thread read it on an interval base. For those writing thread, I know I need lock, or its value could be lower ( even I...
8
by: ragunath79 | last post by:
Hi i used all the following codes to access the IP Address of the client. it is showing the server details only. Please help me in this. I am working with VS2005 ASP.Net. I want to capture the...
22
by: pbd22 | last post by:
Hi. I am building a custom telnet interface and my problem is that I want to read the user input along with the previously written stream. Right now I am logging the user. I have Login:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.