Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SystemSounds.Asterisk.Play();
当我在本地服务器上测试它而不发布它时,这在我的应用程序中运行良好,但是当它发布时没有产生声音,这意味着代码不会播放声音。
有意见吗???
这应该在发布后起作用,并在您的解决方案中保持通知声音
HtmlGenericControl sound = new HtmlGenericControl("<embed src=\"" + path + "\" autostart=\"true\" hidden=\"true\"></embed>"); PlaceHolder1.Controls.Add(sound);
和文本前面的标签