i have this code, it does the conn.execute but doesn't the code in javascript
(doesn't show the alert, doesn't redirect as well) why?
<%
dim fecha
fecha = "01/" & Request.QueryString ("fecha")

Conn.Execute "SP_GrabarInformePendiente " & session("codsoc") & ",'" &
Request.form("nrodoc") & "','" & fecha & "','" & Request.Form ("cre") &
"','" & Request.Form ("deu") & "'," & cint(Request.Form ("cond")) & "," &
cint(Request.Form ("cum")) & "," & cint(Request.Form ("con")) & ",'" &
Request.Form ("obs") & "'"

Response.Write "<script language='javascript'>"
Response.Write "alert ('El Informe ha sido Grabado');"
Response.Write "window.location.href = 'IngresoInformesPendientes.asp'"
Response.Write "window.location.reload()"
Response.Write "</script>"
%>

i tried also putting response.redirect below that code and commenting the
lines with window, but doesn't work as well.