Link to home
Start Free TrialLog in
Avatar of jcraun
jcraun

asked on

Pass Datagrid Value to New Window

I currently have a datagrid with a button column "select" command on webform1.  When this link is clicked I invoke the Item Command event for the datagrid which sets a Session Variable equal to the ID # of the selected row. I navigate to a new page (webform2) using response.redirect and webform2 is populated with information specific to the Session ID number.  However, I need webfrom2 to open in a new browser window.  I know I cans set the base target of webform1 to _blank and I get a new window but it seems to lose my session variable and everything breaks.

Essentially, how do I pass a Session variable to a page that opens in a new Browser window?

Thanks for helping :)
Avatar of arif_eqbal
arif_eqbal

You can pass the ID# as Query String to the new window

Avatar of jcraun

ASKER

This is what I used.. i found it in another thread..

Response.Write("<script>window.open('SlideView.aspx','');</script>")

Thanks for the suggestion.
ASKER CERTIFIED SOLUTION
Avatar of arif_eqbal
arif_eqbal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial