Solved

Pass Datagrid Value to New Window

Posted on 2004-10-19
5
216 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
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…

733 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