Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Response.Redirect Open new Form/tab/page?

Posted on 2016-11-17
5
Medium Priority
?
63 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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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 84

Expert Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

783 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