salve a tutti,
non riesco ad eseguire codice javascript all'interno di uno script asp richiamato con una include da un altro script asp.
Il codice è il seguente:
idUtente=Session("IDUtente")
strsql=("Select flagattivo, idservice from T_Utenti Where id =" & IdUtente )
Set RST = Server.CreateObject ("ADODB.RECORDSET")
RST.ActiveConnection=Application("AppDSN")
RST.Open(strsql)
if RST.EOF = false then
flagattivo=rst("flagattivo")
if trim(rst("flagattivo")) = "SI" then
call ....
else
%>
<script language="javascript">
alert('Errore:accesso non consentito, utente disabilitato.');
history.back();
</script>
<%
end if
RST.Close
set RST=Nothing
end if
%>
Invece di comparire l'alert, lo script pur avendo il flag valore = 'NO', prosegue permettendo l'accesso ad un menù.
Qualcuno mi può aiutare ?

Rispondi quotando