[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • Last Modified:

How do I make a "Beep" sound at the client machine?

I am developing a website using ASP.NET and I want to sound the system BEEP at the clinet machine. I would like to do this in the code-behind using C#.
0
Finch
Asked:
Finch
  • 2
2 Solutions
 
YZlatCommented:
Download a wav file with the beep sound, and then add this code to your page:

Response.Write("<bgsound src='sounds/myFile.wav' id='beep' loop='1'>");
0
 
FinchAuthor Commented:
I cannot get this to work.... no sound.  I placed a copy of Exclamation.Wav in the same directory as my code (to simplify the directory search) and added the following line of code in the appropriate place, the code does execute but no sound.

Response.Write("<bgsound src='Exclamation.wav' id='beep' loop='1'>");
0
 
FinchAuthor Commented:
I got this working now.... I had turned the sound down this morning when the baby was sleeping... my bad.  "ihenry's" answer worked very nicely , thank you.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now