Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
i was trying to create some networking inventories, which hopefully able to detect the error is on which machine, i was told about MAC Address, the problem is i wanted to create a web based application, i'm still learning about this .NET, please inform me anyhow to get MAC Address by ASP or ASP.NET ;)
Posted
You can't. You would have to have access to the client machine and web applications don't run on a clients machine and therefore can't retrieve the information, or any kind of information such as that.
Posted

Auchhh..!!!

 

You can't. You would have to have access to the client machine and web applications don't run on a clients machine and therefore can't retrieve the information' date=' or any kind of information such as that.[/quote']

 

hmm, :eek: but i found some C# script library, i have not check it yet. do you have something else to help me? perhaps some included library? :D i already tried:

ipconfig /all and creating .dll to get macaddress, :rolleyes: but is there anyway in .net? :mad:

Posted (edited)
can you giude me thru? you can personally chat with me at YM ID:arthipesa

or add me at http://www.friendster.com with arthipesa@plasa.com^^

i really need your guide. thanx b4...

 

this is an example from MDSN:

class Sample_ManagementClass

{

public static int Main(string[] args) {

ManagementClass diskClass = new ManagementClass("Win32_LogicalDisk");

diskClass.Get();

Console.WriteLine("Logical Disk class has " + diskClass.Properties.Count + " properties");

return 0;

}

}

 

For network adapters you would substitue Win32_LogicalDisk with Win32_NetworkAdapter. The specific property you want is 'MACAddress'.

 

From there and with the help of Google you should be able to get what you need, I really don't have time right now to do the code.

Edited by bri189a

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...