Solved

Pass Datagrid Value to New Window

Posted on 2004-10-19
5
179 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now