I'm doing a web application using asp.net and c# as the code behind.
I wanted to add sound to my web application so I decided to use the System.Media.SoundPlayer class. something like this:
System.Media.SoundPlayer myPlayer = new System.Media.SoundPlayer(); myPlayer.SoundLocation = @"sound.wav"; myPlayer.Play();
Everything works fine when I run the solution on my local computer, but when I upload my site on the web host the sound doesn't play at all. There is not even a error message.
I do not want to use javascrip to make the sound because I need the sound to be related to functions made in the c# code.
If anyone know how I can make this work, help would be very appreciated. Thank you

New Topic/Question
Reply




MultiQuote




|