Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Play sound on Event

Play sound on Event

Scheduled Pinned Locked Moved ASP.NET
csharphelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bonkers123
    wrote on last edited by
    #1

    Hi all, Does anybody know a way of playing a sound when an event occurs. Please don't give me the embed and GDSOUND (or whatever) stuff... I need something that can play a sound when an updatepanel refreshes, or a timertick event occurs, or any event occurs... I found this LiveSound stuff, but that's WAY too expensive ... ANY help would be much appreciated, cause I can't find anything ... and i've been looking for a few days now ... I'll do ANYTHING for a way to do it .... C# please... Kind regards, Hugo

    P 1 Reply Last reply
    0
    • B bonkers123

      Hi all, Does anybody know a way of playing a sound when an event occurs. Please don't give me the embed and GDSOUND (or whatever) stuff... I need something that can play a sound when an updatepanel refreshes, or a timertick event occurs, or any event occurs... I found this LiveSound stuff, but that's WAY too expensive ... ANY help would be much appreciated, cause I can't find anything ... and i've been looking for a few days now ... I'll do ANYTHING for a way to do it .... C# please... Kind regards, Hugo

      P Offline
      P Offline
      Pranay Rana
      wrote on last edited by
      #2

      check on below link may it usefull for you http://www.w3schools.com/media/media_browsersounds.asp[^]

      B 1 Reply Last reply
      0
      • P Pranay Rana

        check on below link may it usefull for you http://www.w3schools.com/media/media_browsersounds.asp[^]

        B Offline
        B Offline
        bonkers123
        wrote on last edited by
        #3

        I've seen this before ... I think I might just user the old school method and go with something like:

        StringBuilder SetSoundScript = new StringBuilder();

        SetScrollPositionScript.AppendLine("<script language='javascript' event='onload' for='window'>");
        

        // Do some sound stuff here on certain events ....
        SetScrollPositionScript.AppendLine("</script>");

        ClientScript.RegisterClientScriptBlock(typeof(String), "setSound", SetSoundScript.ToString());
        

        I HATE THIS WAY ! Why can't LiveControls just be FREE !

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups