On the first button click when you set the session variables why don't you
write out some script to open the new window? You will save the
information, then call Page.RegisterStartupScript
//this is the first time they are clicking submit.
protected void btnSubmit_Click( ... )
{
//save session variables
//now register the window.open script
Page.RegisterStartupScript( "OpenNewWindow", @"
<script language=""javascript"">
window.open( 'newPage.aspx' );
</script>" );
}
The first page will reload and be sent, and the new window will open. You
won't have to "click" the button again.
HTH,
bill
"ACaunter" <Ad****@hotmail.com> wrote in message
news:C6**********************************@microsof t.com...
Hi all,
I have to push a button twice to open a new window, only because i have to
set some session variables before opening the window so i can't have the
opennewwindow function called in the page load..
So i'm wondering if there is a way to have the button call itself after it
is pressed, to make it seem like it has been pressed twice.
is that possible???
--
Ad****@hotmail.com