Hi
I have the following sun in a .aspx web form.
Protected Sub PlayV_Click(sender As Object, e As System.EventArgs) Handles PlayV.Click
Response.Write("<script>")
Dim hldd As String = ""
Dim clipV As String = " "
hldd = "Clips/" & lbLSN.SelectedValue & ".mp4"
clipV = "RecPV.aspx?fld1=" & hldd
txtClip.Text = clipV
MsgBox(clipV)
Response.Write("window.open(clipV ,'_blank' ,height = 750 , width = 800)")
Response.Write("</script>")
End Sub
when I press the playV button I get and error message
Error: 'clipV' is undefined
I decalrede clipV at the top af the .vb code file.
Public Class ProgName
Inherits System.Web.UI.Page
Public Shared clipV As String = ""
but I still get clipV is undefined.
how can I fix this problem?
Thank you
Bookmarks