hi everyone,
i start website using vs 2005 C# asp.net. i have to check computer mack address at my login period. i need to check username, password and computer mack address.
i dont use vs 2005 login control. im using my own logincontrol (two textboxes for user name and password).
anyone know how i get computer mack address and check this using c# coding.
thx
Loading
Munir ShaikhPosted Jul 30, 2007, 6:10 AM
you can only get the mac address if it a local lan and no proxy server is
between your website and the client box. its not passed to the asp.net
worker process, so you will have to hookup a network tracer (use the
ipaddress) or if you use dhcp, ask the server of the mac address for the
given ip[address.
if the client is behind a proxy, htne you would have to install an active/x
componet on the client to get the mac address.
This seems that you have to use "ActiveXObject" object
<html>
<head>
<title>title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content="http://schemas.
microsoft.com/intellisense/ie5">
<script id="clientEventHandlersJS" language="javascript">
script>
head>
<body>
<INPUT id="Button1" type="button" value="Button"
name="Button1" language="javascript" onclick="return Button1_onclick()">
body>
html>
Once you have achived the mac address then you can pass the same by using hidden fields and retrive using Request.Form[""] method
Regards,
>>Munnamax