io lo faccio con javascript chiamando la funzione apriPopup() sull'evento onload del body:
function apriPopup(){
messaggio = "Login effettuato correttamente"
NewWindow("../Include/PopUpMessaggi.asp?msg="+ messaggio,"dataitem",'70','200');
}
function NewWindow(mypage, myname, h, w) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl +',hotkeys=no ,scrollbars=no,toolbar=no,alwaysRaised=yes ,personalbar=yes';
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}