asp con JavaScript
Normalmente siempre que utilices ASP tendrás que utilizar JavaScript!!!
NombreArchivo = appath & "Archivostextos" & IdCUrso & "" & IdCurso & ".htm"
if ObjArch.FileExists(NombreArchivo) then
ObjArch.DeleteFile(NombreArchivo)
end if
Set Arch = ObjArch.CreateTextFile (NombreArchivo, true)
txtArchIni="<HTML><HEAD></HEAD><BODY class=FondoDatos><FONT FACE=Courier New SIZE=2><P ALIGN=JUSTIFY>"
txtArchFin="</P></FONT></BODY></HTML>"
Arch.WriteLine(txtArchIni & DescCurso & txtArchFin)
Arch.Close
%>
<script>
var Cod;
Cod = <%=IdCurso%>;
if (Cod > 0)
{
window.parent (1).location = "Alum.asp?Id="+Cod;
window.parent(0).location = "Cursos.asp";
}
</script>
</BODY>
</HTML>
NombreArchivo = appath & "Archivostextos" & IdCUrso & "" & IdCurso & ".htm"
if ObjArch.FileExists(NombreArchivo) then
ObjArch.DeleteFile(NombreArchivo)
end if
Set Arch = ObjArch.CreateTextFile (NombreArchivo, true)
txtArchIni="<HTML><HEAD></HEAD><BODY class=FondoDatos><FONT FACE=Courier New SIZE=2><P ALIGN=JUSTIFY>"
txtArchFin="</P></FONT></BODY></HTML>"
Arch.WriteLine(txtArchIni & DescCurso & txtArchFin)
Arch.Close
%>
<script>
var Cod;
Cod = <%=IdCurso%>;
if (Cod > 0)
{
window.parent (1).location = "Alum.asp?Id="+Cod;
window.parent(0).location = "Cursos.asp";
}
</script>
</BODY>
</HTML>