Play Wave sound in ASP .Net

.net , asp.net Malta
  • 10 years ago

    Hi,

    I'm trying to play a short wave file in my C# asp .Net application when the user clicks on a button. Can anyone help me to do it please?

    thanks & regards, 

    M.F.

  • 10 years ago
    Internet Explorer and Netscape both support an element called .

    The purpose of this element is to embed multimedia elements in web page:
    replace . with angular bracket .embed src= " beatles.mid " /.

    The code fragment above displays a MIDI file embedded in a web page.
  • 10 years ago

    windows_mss wrote:
    Internet Explorer and Netscape both support an element called . The purpose of this element is to embed multimedia elements in web page: replace . with angular bracket .embed src= " beatles.mid " /. The code fragment above displays a MIDI file embedded in a web page.

     

    thanks for your reply, can't i do it through c# asp .net?

  • 10 years ago
    it's Work in C#,

    replace . with angular bracket,

    .%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %.

    .!DOCTYPE html PUBLIC "-/ / W3C/ / DTD XHTML 1.0 Transitional/ / EN" "http:/ / www.w3.org/ TR/ xhtml1/ DTD/ xhtml1-transitional.dtd".

    .html xmlns="http:/ / www.w3.org/ 1999/ xhtml".
    .head runat="server" >
    .title Untitled Page./ title.
    ./ head
    .body
    .bgsound src="C:\WINDOWS\Media\town.mid" loop="infinite".

    .form id="form1" runat="server".
    ./ form.
    ./ body.
    ./ html.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“To iterate is human, to recurse divine” - L. Peter Deutsch