473,507 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make Sounds via VS.Net ASP.Net VB app

Hi,
I have an MS Access 2003 app with heavy VB code that successfully controls
the execution of sound wav files. I am re-writing that into an internet
app, using VS.Net 2003 and ASP.Net and VB code, I guess along with HTML and
JavaScript.

Where do I get the documentation and possible code examples to be able to
manage the wav execution with an Internet app? Can this be controlled via
some VB code or is it entirely in HTML or JavaScript?

Thanks,
hugh
Nov 21 '05 #1
7 1323
Hi

I think you need to use the ActiveX to do the job.
e.g.
You can just drag&drop a mediaplayer control onto the webpage, and set the
url to a wav file.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2
Hugh,

In addition to Peter, I would have a look on Internet for some javascript.

Be aware that the VB code is processed on your server. It has not much sense
to play the sound on that computer in my idea.

I tell this because using JavaScript gives seldom problems on a client
computer. The change that a user is loading an Active X is almost zero if it
is not from companies that are really very trusted to be secure in this.

Cor
Nov 21 '05 #3
Cor, Peter,

I was assuming that the actual execution of the sound would be on the client
via say JavaScript. But my app would require a large number of wav files
and the selection of which to play at any user ENTER or CLICK would have to
be managed at the server via VB.Net (I was hoping).

I both understand what you are saying about advantages and the limitations
of an Active X control. But I must confess ignorance. I do not have any
media player or any active X controls in my toolbox selection. How do I get
one and info on its use?

Is this something like I would have to deal with some org like Real
Solution's Real Audio? I assume that Real Player is widely distributed and
used. Would they give me a control I could add to the toolbox. Another
question of ignorance. What is the difference between a Active X control
and what is called a Plug-in?

It is obvious that I need more knowledge on this subject. Where do I get
that information or training if necessary. I am very serious about this
effort and will be willing to pay in time or money. I have been working 3
years of my own time on this app to first develop a Windows app on the PC
and now want to implement it instead on the web.

thanks,
hugh
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uN****************@tk2msftngp13.phx.gbl...
Hugh,

In addition to Peter, I would have a look on Internet for some javascript.

Be aware that the VB code is processed on your server. It has not much
sense to play the sound on that computer in my idea.

I tell this because using JavaScript gives seldom problems on a client
computer. The change that a user is loading an Active X is almost zero if
it is not from companies that are really very trusted to be secure in
this.

Cor

Nov 21 '05 #4
Hugo,

If you add an existing item in your solution explorer and drag that item on
the page than there will be a HREF created if you run and click on that,
than the default player will be selected. (You have to enable sound in your
browser for sound). You can try that to get an idea.

Another option is to use the bgsound, which you don't see in ASPNET.

http://msdn.microsoft.com/library/de...ts/bgsound.asp

I hope this helps,

Cor
Nov 21 '05 #5
Hugh O wrote:
It is obvious that I need more knowledge on this subject. Where do I
get that information or training if necessary.
Google for javascript play sound
I was assuming that the actual execution of the sound would be on the
client via say JavaScript. But my app would require a large number
of wav files


Sounds like you'll need a JavaScript preloader script too.

Don't forget that you cannot assume that the end-user will hear the sounds.

Andrew
Nov 21 '05 #6
well this is verry simple <BGSOUND SRC="hello.wav">

some handy links

http://www.w3schools.com/media/media_browsersounds.asp
http://simplythebest.net/sounds/sound_guide.html
http://members.aol.com/jaynecg/htmcode3b.html

i would go for the following aproach create a hidden frame , now you can
control from your gui page the sounds that need to play by just loading the
page in the hidden frame

regards

hth

Michel Posseth [MCP]



"Hugh O" <Hu****@newsgroup.nospam> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
Hi,
I have an MS Access 2003 app with heavy VB code that successfully controls
the execution of sound wav files. I am re-writing that into an internet
app, using VS.Net 2003 and ASP.Net and VB code, I guess along with HTML
and JavaScript.

Where do I get the documentation and possible code examples to be able to
manage the wav execution with an Internet app? Can this be controlled via
some VB code or is it entirely in HTML or JavaScript?

Thanks,
hugh

Nov 21 '05 #7
Thanks Everyone (Peter, Cor, Andrew, and Michel)
That gives me a lot of thought and options to track down, learn, and play.

thanks,
hugh
"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
well this is verry simple <BGSOUND SRC="hello.wav">

some handy links

http://www.w3schools.com/media/media_browsersounds.asp
http://simplythebest.net/sounds/sound_guide.html
http://members.aol.com/jaynecg/htmcode3b.html

i would go for the following aproach create a hidden frame , now you can
control from your gui page the sounds that need to play by just loading
the page in the hidden frame

regards

hth

Michel Posseth [MCP]



"Hugh O" <Hu****@newsgroup.nospam> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
Hi,
I have an MS Access 2003 app with heavy VB code that successfully
controls the execution of sound wav files. I am re-writing that into an
internet app, using VS.Net 2003 and ASP.Net and VB code, I guess along
with HTML and JavaScript.

Where do I get the documentation and possible code examples to be able to
manage the wav execution with an Internet app? Can this be controlled
via some VB code or is it entirely in HTML or JavaScript?

Thanks,
hugh


Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3193
by: BlackHawke | last post by:
Hello! In our game package (www.andromedaonline.net) we are having problems with sounds. We have placed them in a jar file, and are trying to access them from there. The jar file has a...
1
4652
by: Knocked Wood | last post by:
Hi, I looked around and can't find anything on this at all and can not get it to work for IE. I'm trying to loop multiple sounds on a game, with three unique variables, when a link is clicked....
6
3416
by: ronwer | last post by:
Hello, The title doesn't completely cover the question I have, but it's a bit more complicated problem we have. We are using a database, based on Acces, but developed by a third party...
3
15978
by: brianj | last post by:
I have an older version of Cygwin (B20) under which "make" works fine. I recently installed the latest version of Cygwin. When I type "make" at the command prompt, I get the message: bash:...
6
2613
by: Jeremy S. | last post by:
Sorry if this is too far OT - I posted this in the IIS group and got no response - so here goes: What would be a good or recommended way to make a Web site in IIS6 inaccessible to users on the...
1
3734
by: Terry Olsen | last post by:
Using the following routine to play embedded wav files: Private Sub PlaySound(ByVal Sound As Int32) Select Case Sound Case 1 : My.Computer.Audio.Play(My.Resources.Sounds.GoOnline,...
48
3233
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company...
1
1518
by: michels287 | last post by:
Hello... Currently I have an array of 8 listboxes in VB6. Each item in my listbox plays a wav sound from a large file on my desktop called "Sounds". I am using the sndPlaySound API. The code I...
12
29791
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.