Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Unassigned: clientScript.RegisterClientScriptBlock not firing from within listView ItemCommand [27788]

$
0
0
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)

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>