Hi Experts
Give me one idea..
I want play media and audio file in web page using windows media player control..
How to play in web page..
then how to add media player tool in asp.net tool box.
Thanx
Hi Experts
Give me one idea..
I want play media and audio file in web page using windows media player control..
How to play in web page..
then how to add media player tool in asp.net tool box.
Thanx
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
ArshadRank #2,492 · 564 reputationPosted Jan 22, 2008, 7:52 AM EST
Hi,
To add window media player in ASP.NET page use this code
To play a song in WMP after clicking a Button use this..
First you add the window media player DLL in ur application through the ComReference.and under the button even u wrte this code.
protected void Button3_Click(object sender, EventArgs e)
{
WMPLib.WindowsMediaPlayerClass wmp = new WindowsMediaPlayerClass();
wmp.openPlayer(MapPath("Give ur Song Path here Example XYZ.mp3"));
}
It wil work,Wmp will open n the song will be play