Play audio on button Click event in asp.net web form?
Hi friend
I want play audio file on button click event..
I write code below which not play audio file .It just fire button event.
protected void Button1_Click1(object sender, EventArgs e)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
string src = "D:\\wav Files\\aadar.wav";
//for IE
sb.Append("<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95'");
sb.Append("<param name='FileName' value='" + src + "'>");
sb.Append("<param name='AutoStart' value='" + 1 + "'>");
sb.Append("</object>");
Response.Write(sb.ToString());
}
can anyone tell whats wring with this code.
Thanks and Regards
pash