Solved

Response.Redirect Open new Form/tab/page?

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

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Ok, what I did is jus do a redirect back to the original page.
0
 
LVL 4

Author Closing Comment

by:Thunder724
Comment Utility
Ok, what I did is jus do a redirect back to the original page.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
Glad you got it sorted out.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

18 Experts available now in Live!

Get 1:1 Help Now