How to Open URL in New Tab using c#

ASP.NET C programming Technology

How to Open URL in New Tab using c#

Today, We want to share with you How to Open URL in New Tab using c#.
In this post we will show you c# open url in new window code behind, hear for how to open page in new tab using response.redirect in c# we will give you demo and example for implement.In this post, we will learn about Opening a URL in a new tab in C# 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,c#, Open new window when target=”_blank”

<Link to="/about" target="_blank">About</Link>,c# Overview with Features

There are the Following the List of Features For,c# Pure JavaScript Latest Frameworks.

  • Component oriented
  • Fast speed
  • Interoperability
  • Modern programming language
  • Object oriented
  • Rich Library
  • Scalable and Updateable
  • Simple
  • Structured programming language
  • Type safe,c# redirect to a new tab

Response.Write(String.Format("'{0}','_blank')", ResolveUrl(;

ClientScript.RegisterStartupScript(this.Page.GetType(), "",
  "'','Graph','height=400,width=500');", true);

How to code to open new tab in,c#

//Opening a URL in a new tab

Protected Sub btnReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnReport.Click
      Dim popupScript As String = "<script language="javascript">" + "'', 'newWindow', 'left=5, top=2,location=no, width=560, height=450, menubar=no, resizable=yes,statusbar=yes,scrollbars=yes');" + "</script>"
      Page.RegisterStartupScript("Google", popupScript)
  End Sub,c# Redirects

<asp:Button ID="btnTransfer" OnClick="btnliveTransfer_Click" runat="server" Text="Submit"/>

//on click events
protected void btnliveTransfer_Click(object sender, EventArgs e)
},c# Redirecting To External Domains

public ActionResult PakaLiveAction()
    // ...
    return Json(new {url = ""});

$.post("@Url.Action("PakaLiveAction")", function(data) {
    window.location = data.url;

jQuery 15 Powerful Tips and Tricks for Developers and Web Designer

Read :


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

I hope you get an idea about c# response.redirect new window.
I would like to have feedback on my 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.

Related FAQ

Here are some more FAQ related to this Article:

  1.   javascript objects vs arrays vs JSON Data Types
  2.   Shopping Cart Application in AngularJS
  3.   Redirect page after delay using Vuejs
  4.   Check if the Uploaded File is an Image in Laravel 6
  5.   AngularJS Login Script using PHP MySQL
  6.   Responsive Dropdown Navigation Bar
  7.   AngularJS Confirm Password Validation Example
  8.   PHP Laravel 6 PayPal Payment Gateway API integration step by step
  9.   Export HTML Table Data to CSV using jQuery
  10.   jQuery Mobile Based Slide Swipeable Side Menu

Leave a Reply

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