By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

Posting variables to a new window on Ajax site (asp.NET - VB)

P: 96
Hi there

Passing variables to a new window was quite easy before Ajax, just write a script and include it under the button click event with the variables being including in the url and pulled out at the other end as request.querystring - the only way I can open a new window now is to include this as a javascript function at page_load time and the the button to call the function using Attributes.Add

Soooo the question is, what method can I use now to get the variables to the new window? I've tried Session, but since the function to open the window is pre-defined that won't work as the new Session loads far too late..

Pointers in the right direction would be very much appreciated...
Jan 26 '08 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 15k+
P: 16,027
You should still be able to pass the variables. Show your code.
Jan 28 '08 #2

P: 96
Hi Acoder

I found the issue - replace ClientScript.RegisterStartupScript with ScriptManager.RegisterStartupScript - it's formatted in a different way, but once I got my head round that learning curve opening a new window and passing variables on partial postback works...

Thank you for leaving your reply...
Jan 28 '08 #3

Expert Mod 15k+
P: 16,027
...and thank you for posting your solution. Glad to hear that you got it working.
Jan 28 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.