Add Sounds to button events. ASP.NET

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


Source : Codewidgets

 

No Comments