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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ArshadPosted Jan 22, 2008, 12:52 PM
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