Link to home
Start Free TrialLog in
Avatar of donb1
donb1

asked on

MsgBox Permission denied

Why do I get the following error when I try to put a message box in an ASP?  Is there a way to avoid this? ie -
MyVar = MsgBox("Do you want to delete this message?", 49, "Delete Prompt")

Microsoft VBScript runtime error '800a0046'
Permission denied: 'MsgBox'
ASKER CERTIFIED SOLUTION
Avatar of Pepster
Pepster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of donb1
donb1

ASKER

I see your point, thanks
if u will try the following code it will work fine

<script language=vbscript runat=server>
msgbox "display"
</script>
You have to run ur script of msgbox on server thats why ur code  in <%%> doesn't work