I haave modified the code present here
Play audio (MP3) Files in ASP.Net using Flash Music Player
I have created a protected variable to pass the file name
HTML
<object type="application/x-shockwave-flash" data="dewplayer-vol.swf?mp3=<%=FileName %>"
width="240" height="20" id="dewplayer">
<param name="wmode" value="transparent" />
<param name="movie" value="dewplayer-vol.swf?mp3=<%=FileName %>" />
</object>
C#
protected string FileName;
protected void Page_Load(object sender, EventArgs e)
{
FileName = "mp3/test1.mp3";
}
VB.Net
Protected FileName As String
Protected Sub Page_Load(sender As Object, e As EventArgs)
FileName = "mp3/test1.mp3"
End Sub