Solved

Response.Redirect Open new Form/tab/page?

Posted on 2016-11-17
5
34 Views
Last Modified: 2016-11-17
Hi all am trying to open a new web form using Response.Redirect because I'm passing variables to the new page.  All works fine accept I can not get the new page to open in it's own tab or popup.  Also I can't get it to close or navigate back after saving data in a button.  The below code is what I'm working with.

Response.Redirect("frmSERVER_DETAILS.aspx?" &
                          "_SERVER_NEW=" & _SERVER_NEW &
                          "&_SERVER_NAME=" & _SERVER_NAME &
                          "&_SERVER_ITEM_KEY=" & _SERVER_ITEM_KEY)

Open in new window

0
Comment
Question by:Thunder724
  • 3
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41891968
I'm pretty sure you're not going to get what you want.  'redirect' only works in the current window and it breaks the history path.  If you want a new window, you need to use an <a href... with target="_blank">.

Redirect works that way in all programming languages.  It is actually an HTTP method that is the same in all languages and browsers.
0
 
LVL 4

Author Comment

by:Thunder724
ID: 41891975
If I can't do it this way; how can I at least navigate back or close the form?
0
 
LVL 4

Author Comment

by:Thunder724
ID: 41891995
Ok, what I did is jus do a redirect back to the original page.
0
 
LVL 4

Author Closing Comment

by:Thunder724
ID: 41891999
Ok, what I did is jus do a redirect back to the original page.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41892013
Glad you got it sorted out.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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