Author: NingIE | Posted on: 8/5/2008 7:36:25 AM | Views : 313

Hi all,

I try to play sound whenever user clicks a button, so I have the following coding. It works when I test on the local PC, however, when I upload it to the server, it doesnt work anymore. Any idea? Thanks in advance. Anyway, in order to play sound, should I install sound card on the server? Thanks.


   private void Playsound()
    {
        //Path Mapping
        string wavFile = Server.MapPath("sound.wav");
        Sound.Play(wavFile, PlaySoundFlags.SND_FILENAME | PlaySoundFlags.SND_ASYNC);
    }


    public class Sound
    {
        public static void Play(string strFileName, PlaySoundFlags soundFlags)
      &nb ...

Go to the complete details ...