Home > DeveloperSection > Articles > Introduction to Open New Browser Window using C#.Net

Introduction to Open New Browser Window using C#.Net


ASP.Net ASP.Net 
Ratings:
3 Comment(s)
 9682  View(s)
Rate this:

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" 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 window

public static void OpenNewBrowserWindow(string Url, Control control)

{

    ScriptManager.RegisterStartupScript(control, control.GetType(), "Open", "window.open('" + Url + "');", true);

}

 

 

 


What is TFS AND what are the addvatages of this?

By anil babu on   4 years ago

What is TFS AND what are the addvatages of this?

Tell me how to TFS Installation and configuration?

I am USING VISUAL STUDIO 2010 Ultimate

OS:WIndows web server 2008 R2


Please comment according to the content in the article.

By Haider M Rizvi on   4 years ago

Anil Babu, you should ask or comment according to the content of the article where you are commenting.

For asking question you can use our forum section and do google it before asking questions. This is not a class room where you can ask any question infact we are here to solve your problem if you are stuck some where in your work.

Please don't ask such type of questions again otherwise we have to block you from posting any comment.

Thanks


sorry for this

By anil babu on   4 years ago
Sorry,Thanks for advice..........

Don't want to miss updates? Please click the below button!

Follow MindStick