Hi there I have a link button in my datagrid and the link button opens up another page such as
This window does open but I can't set focus to it?
Any ideas?
Thanks
Code:
Private Sub dgStaff_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgStaff.ItemCommand
Dim sb As New System.Text.StringBuilder(1000)
With sb
.Append("<script language = ""javascript"">")
.Append("window.open('PCReport.aspx?ID=" & e.CommandArgument & "','mywindow','width=530,height=460');")
.Append("</script>")
End With
Page.RegisterClientScriptBlock("OpenCode", sb.ToString)
End Sub
This window does open but I can't set focus to it?
Any ideas?
Thanks