1. Write the following ASP.NET code in the code behind file:
void Page_load(object sender, EventArgs e) { Button1.Attributes.Add( “onclick”, “popWindow()” ); }
2. The .aspx page shoud contains popup JavaScript function:
<html> <head> <script> function popWindow(){ window.open(‘https://www.yourdomain.com/yourpage.aspx’, ”, ”);”); } </script> </head> <body> <form runat=”server”> <asp:Button id=”Button1″ onclick=”Button1_Click” runat=”server” Text=”Run”></asp:Button> </form> </body> </html>
When you click on the button the new popup Window will appear with the desired URL address.

C# in Depth, 3rd EditionBest VPN app