CodeWidgets.com: Online Source Code Library: C#, ASP, ASP.NET, VB, VB.NET, VB Script, Microsoft Access, Excel, JavaScript, J Script, XML, VBScript, Website Design, DevExpress Components, Reporting, Application and Website Templates.

Widget #CS0040

Add Sounds to button events. ASP.NET

Free

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!!!

Last Updated: 10/9/2019


Related Widgets 
Price 
# 
CS0108 Create a Back Button in HTML$0.00Add To Cart
CS0055 Create a function that returns multiple values. VB.Net$0.00Add To Cart
CS0124 Display the number of Active Users on your website (ASP.NET)$0.00Add To Cart
CS0039 Real Time Clock (Javascript)$10.00Add To Cart

Recently Viewed Widgets 
Price 
# 
No data to display

Collapse/Expand
Format

HTML Article

Online Document


Collapse/Expand
License

License

Reserved Copyright

Copyright 2018 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 2000-2006 Comrie Software Solutions


This website uses Cookies to store User information and Shopping Cart Items for the duration of your visit to CodeWidgets.com.

No Credit Card or Financial information is stored by CodeWidgets.com. Click Here For Our Complete Privacy Policy and Terms of Use.

I Understand