what I am trying to do is to open a new window when a BUTTON is clicked and at the same time
I need to pass some Session variables. The problem I am having is The first time when I click the Button1, it works fine and does what i want it to do. It opens the new window and pass the var. But when I click the button for the second time, since the open new window script is already added, It will open the new window without going through the button click event. Please help...ThX!!!!!
code as the following:
Private Sub Page_Load.....
If Not Page.IsPostBack Then
Button1.Attrubites.Add("Onclick","window.open('report.aspx')")
end if
end sub
Private Sub Button1_Click....
Session("Selection") = "ByDay"
Session("Resource") = "A"
End Sub
I need to pass some Session variables. The problem I am having is The first time when I click the Button1, it works fine and does what i want it to do. It opens the new window and pass the var. But when I click the button for the second time, since the open new window script is already added, It will open the new window without going through the button click event. Please help...ThX!!!!!
code as the following:
Private Sub Page_Load.....
If Not Page.IsPostBack Then
Button1.Attrubites.Add("Onclick","window.open('report.aspx')")
end if
end sub
Private Sub Button1_Click....
Session("Selection") = "ByDay"
Session("Resource") = "A"
End Sub