?
Solved

Open ASP Page in New Tab

Posted on 2013-01-07
6
Medium Priority
?
466 Views
Last Modified: 2013-01-09
In a VB web application I am using the following code to open a new page when a button is clicked.

Response.Write("<script type='text/javascript'>detailedresults=window.open('Default.aspx');</script>")

It works well but it opens a new browser window.  I would like for it to open the page a new tab rather than a new browser window.

Can anyone recommend how to modify this code to open the page in a new tab?

Thanks.
0
Comment
Question by:GIANTOCR
[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
6 Comments
 
LVL 36

Assisted Solution

by:Miguel Oz
Miguel Oz earned 400 total points
ID: 38753229
Change the window open call:
window.open('Default.aspx','_newtab');"
Check:
http://stackoverflow.com/questions/10493901/how-to-open-a-page-in-new-tab-on-button-click-in-asp-net
0
 

Author Comment

by:GIANTOCR
ID: 38753268
Tried that, got same result, page opened in a new browser window.
0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 38753549
Can you post your aspx and vb code for this page?
0
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.

 
LVL 20

Assisted Solution

by:informaniac
informaniac earned 800 total points
ID: 38753602
Tab Settings in IE9Doesn't it depend on the Client Browser?
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 800 total points
ID: 38753690
Hi,

I found one interesting link - http://stackoverflow.com/questions/427479/programmatically-open-new-pages-on-tabs

Hope it helps u...
0
 

Author Closing Comment

by:GIANTOCR
ID: 38758056
Thank you to all for your help.

I never got this to work in code.

I did get the application to work the way I wanted by changing the browser settings as recommended by informaniac.

According to the article at the link sent by roopshreddy, that may be the best I can do.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 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