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

Posted on 2004-11-19
Last Modified: 2012-06-27
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#.
Question by:Finch
    LVL 35

    Accepted Solution

    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'>");
    LVL 20

    Assisted Solution


    Author Comment

    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'>");

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now