title: asp.net: How to make a listen button
body: <p>As you can see from the dictionary webs (like <a href="http://www.thefreedictionary.com" rel="nofollow noreferrer">this web</a>), Google translate, ... They provide us a listen button to hear how the word would sound. </p>
  
  <p>I'm trying to make a listen button for my web site, let me describe how I get here:
  The default button always posts back when I click it, so I use the "return false" on OnClientClick to prevent post back as <a href="https://stackoverflow.com/questions/683746/how-to-disable-postback-on-an-asp-button">this article</a> suggests. Then I have to use a javascript function to handle the button's click event, but the C# code behind is used to get the audio's link which is stored in the SQL server database, so I can't get the javascript function to play the audio I want.</p>
  
  <p>So here's my situation:</p>
  
  <p>what I have:</p>
  
  <ul>
  <li>the audio wav file   </li>
  <li>the link of the audio file which is stored in SQL    server database</li>
  </ul>
  
  <p>What I need: The listen button like dictionary websites have.</p>
  
  <p>Thanks for reading.</p>