---
title: "Introduction to Open New Browser Window using C#.Net"  
description: "If you want to open new browser window then you can use this code."  
author: "mohan kumar"  
published: 2012-05-02  
updated: 2019-12-26  
canonical: https://www.mindstick.com/articles/935/introduction-to-open-new-browser-window-using-c-sharp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Introduction to Open New Browser Window using C#.Net

If you want to open new browser window then you can use this code.

<asp:Button ID="ButtonView" OnClick="ButtonView_Click" runat="[server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over)" Text="View" Width="80px" />

```
protected void ButtonView_Click(object sender, EventArgs e){    string Fullurl = "newpage.aspx/";       OpenNewBrowserWindow(Fullurl, this);}
```

```
 //This is used to open new browser windowpublic static void OpenNewBrowserWindow(string Url, Control control){    ScriptManager.RegisterStartupScript(control,
control.GetType(), "Open", "window.open('" + Url + "');", true);} 
```

---

Original Source: https://www.mindstick.com/articles/935/introduction-to-open-new-browser-window-using-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
