Version: 1.6.1.3
Ajax technology accesses server-side power using callbacks without reloading the browser page. Easily create Rich Internet Applications without writing JavaScript!

LiveSound ASP.NET Server Control Information

This page includes information about the LiveSound Server Control, which is included in PowerWEB LiveControls for ASP.NET

[View LiveControl Demo]

The LiveSound server control has the ability to play a sound on a webpage from within a client remote scripted callback. This capability adds many new potential features to web application, for example:

  • Play an alarm when a critical condition occurs in a web application. For example, if the web application is monitoring server traffic in real time, an alert can be played when the server becomes overloaded.
  • Associate a sound effect with some user interface action. For example, if creating a chat application, a doorbell sound could be played when a new person enters the chat room, a chime could be played when a new message is received, etc.
  • Associate a sound effect with an application state change. For example, an email application (such as Hotmail) could continually poll the server for new messages (using LiveTimer) and, when a new message is received, a sound could be played like Microsoft Outlook.
  • Tie sound effects to button clicks, mouse actions, etc.

Browser Compatibility

LiveControls have been tested and are fully "callback-compatible" in the following browsers:

  • Microsoft Internet Explorer 5.0+ for Windows
  • Microsoft Interner Explorer 5.0+ for Macintosh
  • Netscape 7.1+ for Windows
  • Netscape 7.1+ for Macintosh OS X
  • Mozilla 1.3+ for Windows
  • Mozilla 1.3+ for Macintosh OS X
  • Firefox for Windows
  • Firefox for Macintosh OS X
  • Camino for Macintosh OS X
  • Konqueror based engines
  • Galeon
  • Opera 5.0+

If a browser which is not compatible accesses a page containing LiveControls, the controls will fall back to the standard ASP.NET functionality. For example, a LiveButton issues a transparent callback when clicked. If on a non-compatible page, the button will still be displayed, but will cause a standard postback when clicked.

Server Tag Example

The following tags demonstrate typical settings for initializing a LiveSound with a sound file.

<cc1:LiveSound id="LiveSound1" source="rock.wav" runat="server"></cc1:LiveSound>

Code-Behind Example

The following code demonstrates playing a sound on a button click.

private void LiveButton1_Click(object sender, System.EventArgs e)
{
   // Play the sound on a webpage
   LiveSound1.Play();
}