简体   繁体   中英

SystemSounds.Asterisk.Play() not working after being published

  SystemSounds.Asterisk.Play();

This is working fine in my application when i am testing it on my local srver without publishing it , but when it is published the sound is not produced ,means the code does not play the sound.

Any Views????

This should work after being published, and keep your notification sound in your Solution

HtmlGenericControl sound = new HtmlGenericControl("<embed src=\"" + path + "\" autostart=\"true\" hidden=\"true\"></embed>");

    PlaceHolder1.Controls.Add(sound);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM