I have a gridview in my web application
this gridview contains a select button
I want when clicking on this button, a popup window appears showing some infrormation
about the selected row.
I am using asp.net 0.2

Thanks in advace.

Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs) Handles GridView1.RowCommand

        If GridView1.Rows.Count - 1 > 0 Then

      

  If e.CommandName = "PDetails" Then

            Dim RecordID As String = GridView1.DataKeys(Convert.ToString(e.CommandArgument)).Item(0).ToString

Session.Add("RecordID",RecordID)
       
         Response.Write("<script>")
                Response.Write("window.open(YOURPOPUPPAGE.aspx','_blank','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')")
                Response.Write("</script>")

end if

end if

end sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.