Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listening mp3 on web part

Status
Not open for further replies.

bereza

Technical User
Jun 14, 2006
105
EU
How you can listen to a mp3 file on a web part?

following is my code but it doesn't work:

protected override void CreateChildControls()
{
MyLinkButton = new LinkButton();
MyLinkButton.Text = "click here";
MyLinkButton.Click += new EventHandler(MyLinkButton_Click);
Controls.Add(MyLinkButton );
}

void MyLinkButton_Click(object sender, EventArgs e)
{
System.Web.HttpContext.Current.Response.Redirect("}
 
Add an XML web part to you page then

Code:
<EMBED 
SRC="file location" HEIGHT=60 WIDTH="144" type=audio/wav AUTOSTART="false">

HTH

When frustrated remember, in the computer world there is almost always a backdoor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top