Open ASP Page in New Tab

Posted on 2013-01-07
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'>'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 35

Assisted Solution

by:Miguel Oz
Miguel Oz earned 100 total points
Comment Utility
Change the window open call:'Default.aspx','_newtab');"

Author Comment

Comment Utility
Tried that, got same result, page opened in a new browser window.
LVL 35

Expert Comment

by:Miguel Oz
Comment Utility
Can you post your aspx and vb code for this page?
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

LVL 20

Assisted Solution

informaniac earned 200 total points
Comment Utility
Tab Settings in IE9Doesn't it depend on the Client Browser?
LVL 23

Accepted Solution

Roopesh Reddy earned 200 total points
Comment Utility

I found one interesting link -

Hope it helps u...

Author Closing Comment

Comment Utility
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

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my 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…
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…
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: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

13 Experts available now in Live!

Get 1:1 Help Now