Solved

Response.Redirect Open new Form/tab/page?

Posted on 2016-11-17
5
29 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

929 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

8 Experts available now in Live!

Get 1:1 Help Now