View Single Post
  #2 (permalink)  
Old April 10th, 2006, 03:19 PM
billmaher billmaher is offline
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was workin on a similar kind of issue some time ago, I used Page.RegisterStartupScript method.
I had to produce a pop up window with a chart and related data based on several listbox selections on the click of a button. Following is a VB.NET code that I wrote to achieve what I just explained. Hope this is what you are looking for.

Quote:
quote:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim strPop As String
        Dim file As String
        file = "chartmaker.aspx?chType=" & lst_ChType.SelectedValue & "&Table=" & lst_Table.SelectedValue & "&Values=" & lst_Values.SelectedValue & "&Categories=" & _
                lst_Categories.SelectedValue & "&Series=" & lst_Series.SelectedValue

        strPop = "<script language='javascript'>" & vbCrLf _
                & "window.open('" & file & "','Report','menubar=1,status=1,scrollbars=1,resiz able=1')" & vbCrLf _
                & "</script>" & vbCrLf
        Page.RegisterStartupScript("Pop", strPop)

    End Sub
Regards,
Sai Puli