在循环中打开asp.net中我的页面的多个选项卡

时间:2016-05-05 09:49:47

标签: javascript asp.net vb.net web

我想在这个foreach中为另一个页面打开一个新标签,其中包含我通过会话传递给它的数据。

更多信息:

  • 我有一个GridView,我从中选择Clients
  • 我想为GridView
  • 中选择的每个客户打开新标签

但是它只打开最后一个客户端的选项卡。有解决方案吗?

Protected Sub APPReport_Click(sender As Object, e As EventArgs) Handles APPReport.Click
    For Each Item2 As GridViewRow In ClientsGv.Rows
        Dim ChckClient As CheckBox = CType(Item2.FindControl("SlctClient"), CheckBox)
        If ChckClient.Checked Then               
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('AppraisalReportView.aspx ','_blank')", True)
        End If
    Next
End Sub

0 个答案:

没有答案