<%
nstate = rs("nstate"
observ = rs("observ"
if cInt(nstate)>0 then
%>
<script type="text/javascript">
var nstate =<%=nstate%>;
var observ ="<%=observ%>";
popUp(nstate,observ);
</script>
<%
if cInt(nstate)=2 and cInt(Session("UserNfunc")>0 then
response.Redirect"Main_Backgr.asp"
exit sub
end if
end if
%>
This script tests if the state of a DB row is 0,1 or 2. If it is 1 or 2 shows a message in a popup window. That’s what popup() do.
When is 2, it should redirect the user out, after that popup window close.(it is a modal window)
The problem is that when both cInt(nstate)=2 and cInt(Session("UserNfunc")>0 conditions are true it gets redirect but doesn’t show the pop up window.
Please some one
nstate = rs("nstate"
observ = rs("observ"
if cInt(nstate)>0 then
%>
<script type="text/javascript">
var nstate =<%=nstate%>;
var observ ="<%=observ%>";
popUp(nstate,observ);
</script>
<%
if cInt(nstate)=2 and cInt(Session("UserNfunc")>0 then
response.Redirect"Main_Backgr.asp"
exit sub
end if
end if
%>
This script tests if the state of a DB row is 0,1 or 2. If it is 1 or 2 shows a message in a popup window. That’s what popup() do.
When is 2, it should redirect the user out, after that popup window close.(it is a modal window)
The problem is that when both cInt(nstate)=2 and cInt(Session("UserNfunc")>0 conditions are true it gets redirect but doesn’t show the pop up window.
Please some one