Du er nødt til at bruge en kombination af javascript og ASP... Dette kode åbne et centreret popup hvis din session læser sand....
<html>
<head>
<script type="text/javascript">
<!--
var win = null;
function NewWindow(mypage,myname,w,h,scrol)
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrol+',resizeable=no'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}
-->
</script>
</head>
<body>
<% If not session("login") > 0 then %>
<script>
NewWindow('
http://www.zune.dk','popup','840','650','yes')
</script>
<%
else
response.write "Du er ikke logget ind eller det der ligner"
end if
%>
%>
</body>
</html>