Using new AJAX Control Toolkit 15.1.
I've replaced the AJAXControlToolkit:ToolscriptScriptManager with asp:scriptManager on my page (contained within a master page that does not have a script manager)
Now when I try to use clientScript.RegisterClientScriptBlock to run some javascript from within listView ItemCommand, it does not fire. example below.
Suggestions?
Dim go As String = String.Empty
If e.CommandName = "button1" OrElse condition2 = 1 Then
go = "<script type='text/javascript'>window.open('page1.aspx" & pageQueryString & "', '_blank')</script>"
Else
go = "<script type='text/javascript'>window.open('page2.aspx" & pageQueryString & "', '_blank')</script>"
End If
clientScript.RegisterClientScriptBlock(clientScriptType, "buttonClickScript", go)
I've replaced the AJAXControlToolkit:ToolscriptScriptManager with asp:scriptManager on my page (contained within a master page that does not have a script manager)
Now when I try to use clientScript.RegisterClientScriptBlock to run some javascript from within listView ItemCommand, it does not fire. example below.
Suggestions?
Dim go As String = String.Empty
If e.CommandName = "button1" OrElse condition2 = 1 Then
go = "<script type='text/javascript'>window.open('page1.aspx" & pageQueryString & "', '_blank')</script>"
Else
go = "<script type='text/javascript'>window.open('page2.aspx" & pageQueryString & "', '_blank')</script>"
End If
clientScript.RegisterClientScriptBlock(clientScriptType, "buttonClickScript", go)