.wav and page loading (ASP.NET)

T

Tavish Muldoon

Hello,

I have a web page and in the page load it is suppose to start playing
music.
Is there any way I can have it play the music and continue downloading
the page so it can bee seen. Right now it just waits till the music
is played. Then displays the page.

Here is the code <generated code skipped for brevity>:


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
PlaySound("\Inetpub\wwwroot\NEWS\Todaysmessage.wav", 0, &H10)

'I HAVE DESIGN TIME DATA DISPLAYED, BUT IT DOES NOT UNTIL THE
'MESSAGE IS DONE.

End Sub

Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs)

End Sub

Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA"
(ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As
Long) As Long

End Class

Suggestions?
 
S

Steve Drake

Do you understand the ASP.NET code gets executed on the server?

You need to make it write the correct HTML out to play the WAV file.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top