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
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
LVL 36

Assisted Solution

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

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?
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

LVL 20

Assisted Solution

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

Accepted Solution

Roopesh Reddy earned 200 total points
ID: 38753690

I found one interesting link -

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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 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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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