Playing a Midi File in VWD

jeva39

Well-known member
Joined
Jan 28, 2005
Messages
135
Location
Panama
Programming Experience
1-3
In Visual Studio 2003 I use this code to play a user selected Midi file and working OK but in 2005 don't work:

VB.NET:
Sub PlayMidi(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
Select Case (CType(e.CommandSource, LinkButton)).CommandName
Case "Demo"
Dim FColumn As TableCell = e.Item.Cells(5)
Dim TColumn As TableCell = e.Item.Cells(1)
Dim TColText As String = TColumn.Text
Dim FColText As String = FColumn.Text
lblTeme.Text = TColText
Response.Write("<embed name=ac_tema src=" + FColText + " width=200 height=50 autostart=true loop =false hidden=true>")
Case Else
' do nothing.
End Select
End Sub

Really,this code don't send any error but can't hear the Midi. In 2003 code I define the ONITEMCOMMAND="PlayMidi" but in 2005 I don't know how to define this.

Please, can help me?

Thanks
 
Back
Top