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');");
No related posts.
hey, what about if you are opening an aspx page located on the same website but on a different directory?