willy
|
| Posted: 06/01/2002, 8:51 AM |
|
when i use msgbox i got a error like that: permission denied msgbox
my code is rather than like that
if condition then
respuesta=msgbox("No esta inscrito?")
if respuesta=vbyes then
response.redirect "/web/respuesta.asp"
end if
end if
is there another way for do this?
|
|
|
 |
Sixto
|
| Posted: 06/02/2002, 4:00 AM |
|
Willy,
This is not a CC issue. You cannot do that, period.
You must understand the 2 levels where your code runs. The server level (where the ASP executes) and the client level (where your results are presented and, if any, client scripting runs).
What you are asking with your code is to show a msgbox on the server. What you want, I assume, is to present a msgbox to the user (on the client level).
There are several ways to cope with this, but they all depend on what you are trying to do.
Using your example, one could write:
if condition then
%>
<script language="javascript">
var respuesta=window.confirm("No esta inscrito?");
if(respuesta)
document.location.href="/web/respuesta.asp";
</script>
<%
end if
This way, your condition is tested on the server side and, if met, the javascript is sent for execution on the client side
.
|
|
|
 |
|