Posted inTechnology / ASP.NET

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

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://www.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://www.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.

I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.

Leave a Reply

Your email address will not be published. Required fields are marked *

We accept paid guest Posting on our Site : Guest Post Chat with Us On Skype