The only way to achieve this is by using an applet or plugin which could for example be programmed in java (although java itself might not allow it according to Getting MAC address on a web page using a Java applet ), as javascript will naturally not disclose this kind of information. Lastly you could also find this information from the server side if it's on an internal network as is often done with semi-private wifi network landing pages.
Based on the comments below: As it's an internal network you can retrieve the mac address as follows on the asp.net side. You execute the following command arp -a
which will return you a list of all ip addresses with associated mac addresses. Next using something along the lines of
Request.Servervariables("REMOTE_ADDR")
you should be able to find the users ip address which you can next match with the data you retrieved from the arp command and voila, you have your mac address for the current user.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…