Como puedo hacer algo parecido al msgbox con asp.
Es decir quiero sacar una ventana de error.
| |||
yo lo hago de esta manera <% If REQUEST("ERR")=1 Then %> <SCRIPT LANGUAGE = "VBScript"> Mensaje = "xxxxxx" Estilo = vbExclamation Titulo = "xxxxxxx" Ayuda = "DEMO.HLP" Ctxt = 1000 Respuesta = MsgBox(Mensaje, Estilo, Titulo, Ayuda, Ctxt) form1.xxxx.value="(xxxxxx)" document.form.xxxx.focus(); </SCRIPT> <% end if %> asi lo redirecciono a la pagina que me trae el parametro error Response.Redirect("xxxxxx.asp?ERR=1") if err.number then response.write (err.description) End if |
| |||
eso es porque intentas hacer un msgbox directamente desde asp prueba escribiendo directamente en la pagina el scrpit <html> <head>... <body> ' este codigo si quieres que salga el msgbox Response.write("<script language)='vbscript'>msgbox"tu mensaje"</script>") </body> Un saludo |