Hi Karim,
Here's some code that might work for you. Not sure whether the setting of
the Session variable will be done in time for the secondary window to fetch.
Depends on the speed of the server, I suppose.
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Attributes.Add _
("onclick", "window.open('sec.aspx','sec');return true;")
End Sub
Private Sub Button1_Click _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Session("stored") = "here is the value at " & _
Now.ToLongTimeString
End Sub
"Karim" <ka*******@yahoo.moc> wrote in message
news:96****************************@40tude.net...
I have a button that opens a new Window using client side Javascript. The
button also has server side script (.._click) that saves some session
variables to be used in the new Window.
The problem is that the server side function does not fire.
Karim