using System.Media;
SoundPlayer player = new SoundPlayer();
player.SoundLocation = Server.MapPath("~/type.wav");
player.Play();
SoundPlayer player = new SoundPlayer();
player.SoundLocation = Server.MapPath("~/type.wav");
player.Play();
soundplayer只能播放波形文件,如wav格式