B
Ben Schumacher
I keep getting a script error (Expected end of statement) when I try to add
the following attribute to a <asp:Button server control. My vb.net looks as
follows ...
Dim sUrl As String = "../popup/newfolder.aspx"
Dim vArguments As String = "document.all('" & cmdNew.ClientID & "')"
Dim sfeatures As String = String.Empty
Dim s As String = "vbscript:vReturnValue = window.showModalDialog('" & sUrl
& "', " & vArguments & ", '" & sfeatures & "')"
cmdNew.Attributes.Add("OnClick", s)
Any suggestions?
the following attribute to a <asp:Button server control. My vb.net looks as
follows ...
Dim sUrl As String = "../popup/newfolder.aspx"
Dim vArguments As String = "document.all('" & cmdNew.ClientID & "')"
Dim sfeatures As String = String.Empty
Dim s As String = "vbscript:vReturnValue = window.showModalDialog('" & sUrl
& "', " & vArguments & ", '" & sfeatures & "')"
cmdNew.Attributes.Add("OnClick", s)
Any suggestions?