drupal stats

Open a PopUp Window in ASP.NET

June 10th, 2011 Web Forms 1 Comment


The code below will help you open a popup window when you click on the button.

Button1.Attributes.Add("onclick", "window.open('http://www.dotneter.com'); return false;");

You can set the width and height for the popup window and some other options.

Button1.Attributes.Add("onclick", "window.open('http://www.dotneter.com',null,'height=300, width=300, status=no, resizable=no, scrollbars=no, toolbar=no,location=no, menubar=no');");

Tags: popup window in asp net, popup window in asp net using c#, Pop Up window in asp net, asp net popup window, open popup window in asp net, how to open popup window in asp net, open popup window in asp net c#, how to open a popup window in asp net, how to open popup window in asp net using javascript, how to open popup window in asp net c#

No related posts.

1 Comment

  1. niel says:

    hey, what about if you are opening an aspx page located on the same website but on a different directory?