Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Audio in website from c# CODE BEHIND PAGE.
Ashutosh Tripathi
Jul 5 2015 6:33 AM
638
Reply
I want to know how to put a audio in website by using c# on code behind page.
I had used some code like
System.Media.SoundPlayer player = new System.Media.SoundPlayer(Server.MapPath("~/available.wav"));
player.Play();
it is working fine on my local host but not working after hosting on server.
The main motive of my work is to play a sound like "Seat is available" after checking database for available seat and if seat is not available than it play a sound like"Seat is unavailable". All work is done on button click event.
I need the solution as soon as possible, so please help me.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
dynamic textbox creation on buttn and getting its value back
route for partial view not working got Server Error in '/' ?