ho trovato questo esempio:
codice:
<SCRIPT LANGUAGE=JAVASCRIPT>


    function   OpenModalWindow(popupsite,windowname,wnd

Height,wndWidth,ScrollYN) {
    	var X = 0;
    	var Y = 0;


        	if (screen.availWidth){
        		X = (screen.availWidth / 2) - (wndWidth / 2);
        		Y = (screen.availHeight / 2) - (wndHeight / 2);
        	}
        	childwindow = window.open(popupsite,windowname,"left=" + X + "screenX=" + X + "screenY=" + Y + ",top=" + Y + ",toolbar=0,scrollbars=" + ScrollYN + ",resizable=1,height=" + wndHeight + ",width=" + wndWidth);
        	window.onfocus = function(){if (childwindow.closed == false){childwindow.focus();};};
    }
    </SCRIPT>

la richiamo cosi da runtime:
this.cmdInvio.Attributes.Add("popup","javascript:OpenModalWindow('wait.htm','popupname',300,200,1)");
lo script sta nel HEAD, l'aggiunta dell'attributo ho provato a metterlo sia nel load che nell'evento associato al pulsante.


ma non mi si fila per niente come mai?


Ciao