Solved

Response.Redirect Open new Form/tab/page?

Posted on 2016-11-17
5
42 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
[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
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

734 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