title: How do I play an audio file on page load?
body: <p>I have a website. I have a specific page. I need to play WMV file on page load. I have uploaded the wmv file. When i run it, it gives nothing.</p>
  
  <p>Here is the code</p>
  
  <pre><code>Imports System.Media
  Imports System.Collections.Generic
  Partial Class _Default
  Inherits System.Web.UI.Page
  
  Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
      Dim loca As String
      loca = Server.MapPath("../audioo.wav")
      Dim a As New SoundPlayer(loca)
      a.PlayLooping()
  End Sub
  End Class
  </code></pre>
  
  <p>the file is WAV and all other examples on net use mp3</p>