CodeWidgets.com Online Source Code Library -ASP, ASP.NET, VB, VB.Net, Microsoft® Access, Javascript, VBScript, Website Design, Web Applications, Custom Programming Services Available.

 CodeWidgets.com ASP, ASP.NET, VB, VB.Net,
Microsoft® Access, Javascript, VBScript,
Website Design, Web Applications
Shopping Cart (0) Items $0.00      
 CodeWidgets.com
CodeWidgets.com

 

Website Stats to Date

Pages Viewed 6,940,643
Visitors 1,664,751
Widgets Viewed 4,483,408
Since January 1/2003
 
 
Active Users: 40
 

 
PayPal: Secure online payments!
 
Widget #CS0040

Add Sounds to button events. ASP.NET

Add Sounds to button events. ASP.NET

Send Link

Questions

Currency Conv.
  Widget Info  
Users like to know that something has happened when they click a button. When the user clicks a post back button respond with a sound, it tells them something is happening and establishes a certain level of trust in your application.

How To…

Add a folder to your web called - sounds
Add the .wav file to the sounds folder IE: ding.wav
On the Page_Load event
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If IsPostBack Then Response.Write("<bgsound src='sounds/ding.wav' id='ding' loop='1'>")

End Sub


That's all there is to it!!!
 Licensing
Format: HTML Article
Online Document
Licencing Terms: Reserved Copyright
Copyright 2002 CodeWidgets.com
Reproduction or duplication of this article without the authors permission is prohibited and protected under the copyright laws of Canada.
This source code is provided to you "as is" without warranty
CLICK HERE FOR TERMS OF USE
Copyright 2002-2006 Comrie Software Solutions
 Related Widgets

Create a Back Button in HTML
Create a function that returns multiple values.
Display a folders contents on a web page. (ASP)
Display the number of Active Users on your website (ASP.NET)
Dynamic Drop Down Web Menu
Enable/Disable Server Controls using a For Each loop (ASP.NET)
Passing a value back from a Popup window (ASP)
Real Time Clock (Javascript)

ShoppingCart Empty
Services Contact Info Legal Info
Designated trademarks and brand names are the property of their respective owners.

By accessing this website it is assumed that you agree to the TERMS OF USE.

Send questions or comments regarding this website to  Comrie Software Solutions.

Click here for a complete list of available Widgets.