I want to open a page in a new window, the problem is I need to pass some parameters to the new page...
I'd already try a javascript function but it doesn't work...
On the next page you can use that variable in the same way. If you don't need it anymore you can destroy it by using this function : Session.remove("<variable>"
You can also use cookies, but I still prefer those session variables (a lot easier to work with ;-)).
But I still have one problem
Here is the function I use to open the window and the call to it :
<script language="JScript">
function newWin(url)
{
window.open(url)
}
</script>
I found another solution :
I was using a WebForms button, so all the code behind was on the server. I just change the button to a simple HTML button and it works!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.