Skip to main content

How to Open URL in New Tab using ASP.NET

How to Open URL in New Tab using ASP.NET

Today, We want to share with you How to Open URL in New Tab using ASP.NET.
In this post we will show you ASP.NET Redirect Method, hear for Open in new tab on button click in child page in asp.net we will give you demo and example for implement.In this post, we will learn about How to redirect URLs to different Web sites in asp.net with an example.

My Paka Knowledgeable Ideas, Tips and Tricks, Useful Content, Jobs, Technology, Earn Money, gmail creation, skype, yahoo and more useful things.

In ASP.NET, Open new window when target=”_blank”

About Pakainfo.com

ASP.NET Overview with Features

There are the Following the List of Features For how to open a page in new tab on button click in asp.net? Pure JavaScript Latest Frameworks.

  • ASP.NET 4.5 GridView control
  • ASP.NET Web API
  • Bundling and Minification
  • Enable Trace
  • Garbage Collector
  • HTML5 form types
  • Model Binding
  • OpenID in OAuth Logins
  • Performance Tuning
  • Provides for web sockets protocol
  • Strongly Typed Data Controls
  • Value Providers
  • asynchronous programming
Also Read :  javascript remove last comma from Array

ASP.NET redirect to a new tab

We could use simple JavaScript window.open. Like this:

protected void btnsubmitEntry_Click(object sender, EventArgs e)
{ 
   Page.ClientScript.RegisterStartupScript(
   this.GetType(),"OpenWindow","window.open('https://pakainfo.com/','_newtab');",true);
}

//other ways

ASP.NET Redirects


//JavaScript Source code

    function openmyInNewTab() {
        window.document.forms[0].target = '_blank'; 
        setTimeout(function () { window.document.forms[0].target = ''; }, 0);
    }

ASP.NET Redirecting To External Domains


  protected override void OnLoad(EventArgs e)
  {
      Response.Redirect("https://pakainfo.com/");
  }

aspx page to redirect to a new page


  




jQuery 15 Powerful Tips and Tricks for Developers and Web Designer

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about open new tab on button click in ASP.Net.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Gondaliya Jaydeep

Hi, I’m Jaydeep Gondaliya, PHP developer.Pakainfo.com is the most popular Programming & Web Development blog. Our mission is to provide the best online resources on programming and web development.Any visitors of this site are free to browse our tutorials, live demos, Examples and download scripts.If you have a project that you want to get started, launch quickly, contact me. Email : [email protected]