Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Pass Datagrid Value to New Window

Posted on 2004-10-19
5
210 Views
Last Modified: 2010-04-24
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 :)
0
Comment
Question by:jcraun
  • 2
5 Comments
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 12355057
You can pass the ID# as Query String to the new window

0
 

Author Comment

by:jcraun
ID: 12372827
This is what I used.. i found it in another thread..

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

Thanks for the suggestion.
0
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 250 total points
ID: 12378997
You can now write

Response.Write("<script>window.open('SlideView.aspx?ID='" & TheID,'');</script>")

Now the SlideView.aspx page will access the ID and display according to the ID

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question