In this short article with a code snippet to play WAV sound files using JavaScript in ASP.Net.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var soundObject = null;
        function PlaySound() {
            if (soundObject != null) {
                document.body.removeChild(soundObject);
                soundObject.removed = true;
                soundObject = null;
            }
            soundObject = document.createElement("embed");
            soundObject.setAttribute("src", "sounds/sound.wav");
            soundObject.setAttribute("hidden", true);
            soundObject.setAttribute("autostart", true);
            document.body.appendChild(soundObject);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <input type = "button" onclick = "PlaySound()" value = "Play Sound" />
    </form>
</body>
</html>
 
Above I have placed a HTML input button which calls the JavaScript function PlaySound() which downloads from the specified path and then plays the WAV file.
You can download the source using the download link below

Download Code