Welcome to Dream.In.Code
Become an Expert!

Join 150,057 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,740 people online right now. Registration is fast and FREE... Join Now!




Adding a control to play a sound file on a web page

 
Reply to this topicStart new topic

Adding a control to play a sound file on a web page, Perhaps win media player

ross_petersen
10 Feb, 2008 - 09:48 AM
Post #1

D.I.C Head
**

Joined: 6 Aug, 2005
Posts: 58



Thanked: 1 times
My Contributions
Hi folks

I have a gridview control on a web page (aspx) that displays a list of sound files. there are a number of columns as follows:
  • Date
  • Author
  • Duration
  • FileName
  • Download Link

When I run it and right click on the download link & choose "Save Target as..." the usual dialog box pops up which is fine.

However, when I do a left click well the page navigates to the folder in question with the FileName.mp3, the only problem being is that the page is blank & no sound file plays.

I tried creating a new page & then insert a control on ther page to play the sound file. What I was hoping to do was find a control in VSE 2005 that I could insert (perhaps a scaled down version of Win Media Player as an activex control or some other control).

So, if there is anyway this can be done?

Kind regards

Ross
User is offlineProfile CardPM
+Quote Post

Re@p3rM4n
RE: Adding A Control To Play A Sound File On A Web Page
10 Feb, 2008 - 01:35 PM
Post #2

New D.I.C Head
*

Joined: 5 Feb, 2008
Posts: 42


My Contributions
QUOTE(ross_petersen @ 10 Feb, 2008 - 10:48 AM) *

Hi folks

I have a gridview control on a web page (aspx) that displays a list of sound files. there are a number of columns as follows:
  • Date
  • Author
  • Duration
  • FileName
  • Download Link
When I run it and right click on the download link & choose "Save Target as..." the usual dialog box pops up which is fine.

However, when I do a left click well the page navigates to the folder in question with the FileName.mp3, the only problem being is that the page is blank & no sound file plays.

I tried creating a new page & then insert a control on ther page to play the sound file. What I was hoping to do was find a control in VSE 2005 that I could insert (perhaps a scaled down version of Win Media Player as an activex control or some other control).


So, if there is anyway this can be done?

Kind regards

Ross




try this

try this
CODE


<center><embed src="music.wav"
height="55" width="200" autostart=true repeat=true loop=true
CONTROLS=smallconsole></embed></center>


it is quicktime.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 10:30PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month