How can we get MAC Address in asp.net
I have seen some articles and with the help of those article i can get mac address
but it gets address in "00114313D615" this format
but actual format is like this
"00-11-43-13-D1-65"
so how can i get mac address in actual format which is connected with internet
because in 1 system multiple Card can be used
Loading
VulpesPosted Nov 17, 2011, 10:09 AM
string mac1 = "00114313D165";
System.Text.StringBuilder sb = new System.Text.StringBuilder(mac1);
for(int i = sb.Length - 2; i >= 2; i -= 2)
{
sb.Insert(i,'-');
}
string mac2 = sb.ToString();
Console.WriteLine(mac2); // 00-11-43-13-D1-65