Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how open a popup window at button click in csharp
Posted

You can call the popup on OnClientClick of a button.
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml[^]
 
Share this answer
 
try:
HTML
<script language="JavaScript"><!--
var windowHandle = null;
var windowHandle_closed = false;
 
function openWindow() {
    windowHandle = window.open('SearchPR.aspx','_blank','width=600,height=380,title=yes,toolbar=no,location=no,resizable=no,status=no');
    if (windowHandle_closed) {
        windowHandle_closed = false;
    }
}
 
function closeWindow() {
    if (windowHandle != null) {
        if (!windowHandle_closed) {
            windowHandle_closed = true;
            windowHandle.close();
        }
    }
}
//--></script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900