.wav and page loading (ASP.NET)

  • Thread starter Thread starter Tavish Muldoon
  • Start date Start date
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?
 
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
 
Back
Top