Open ASP Page in New Tab

Posted on 2013-01-07
Medium Priority
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?

Question by:GIANTOCR
LVL 36

Assisted Solution

by:Miguel Oz
Miguel Oz earned 400 total points
ID: 38753229
Change the window open call:

Author Comment

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

Expert Comment

by:Miguel Oz
ID: 38753549
Can you post your aspx and vb code for this page?
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 20

Assisted Solution

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

Accepted Solution

Roopesh Reddy earned 800 total points
ID: 38753690

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

Hope it helps u...

Author Closing Comment

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.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

621 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