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: 1/5/2003


Related Widgets 
Price 
# 
CS0055 Create a function that returns multiple values. VB.Net$0.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