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
How to get mac address in string format(actual format )
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Nov 17, 2011, 5:09 AM EST
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