In this short article with a code snippet to play WAV sound files using JavaScript in ASP.Net.
<html xmlns="">
<head runat="server">
    <script type="text/javascript">
        var soundObject = null;
        function PlaySound() {
            if (soundObject != null) {
                soundObject.removed = true;
                soundObject = null;
            soundObject = document.createElement("embed");
            soundObject.setAttribute("src", "sounds/sound.wav");
            soundObject.setAttribute("hidden", true);
            soundObject.setAttribute("autostart", true);
    <form id="form1" runat="server">
        <input type = "button" onclick = "PlaySound()" value = "Play Sound" />
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