Improve company productivity with a Business Account.Sign Up


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'>'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:'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?
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

LVL 20

Assisted Solution

by:Obadiah Christopher
Obadiah Christopher 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 -

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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…
Watch the video to know the process of migration of Exchange or Office 365 mailboxes in absence of MS Outlook. It is an eminent tool which can easily migrate Public, Archive user mailboxes from one another Exchange server and Office 365. Kernel Migr…

584 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