Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permission Denied

Status
Not open for further replies.

Kinl

Programmer
Mar 19, 2001
168
US
I get this error when I try to use the MSGBOX function in VBScript. What might be the problem ?


Microsoft VBScript runtime error '800a0046'

Permission denied: 'msgbox'

/test/test.asp, line 9


Thanx,

Donn
 
Hi Donn,

Your asp code executes on the server, so it's not possible to display a messagebox on the client site.

but you can use some javascript like:

You can use the onload attribute in the body tag from the page where the submitbottun submits to.

<BODY onload=&quot;{window.alert('YourText');}&quot; >

An other way, if you use a link to go to another page, you can use the onclick attribute.

<a onclick=&quot;{window.alert('YourText');}&quot; href=&quot;somepage.asp&quot;>pagename</a>

Hope this will help,
Erik
 
Thanx~!!

I seemed to have used an alternate route to accomplish this. But thank you very much.

Donn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top