[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Pass Datagrid Value to New Window

Posted on 2004-10-19
5
Medium Priority
?
232 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
[X]
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
  • 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 1000 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

656 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