|
Prev: run website in server
Next: error '8004020e'
From: Bob L on 7 Dec 2005 13:21 I've inserted a MsgBox in some VBScript on line 12 of an .asp page and get the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'MsgBox' /default.asp, line 12 The script processes a form and other than this problem with MsgBox, the script works fine. I've Googled the error but so far haven't found an answer that applies. Any idea what the problem might be and how I can get it to work?
From: Bob Barrows [MVP] on 7 Dec 2005 13:29 Bob L wrote: > I've inserted a MsgBox in some VBScript on line 12 of an .asp page > and get the following error: > > Microsoft VBScript runtime error '800a0046' > Permission denied: 'MsgBox' > > /default.asp, line 12 > > The script processes a form and other than this problem with MsgBox, > the script works fine. I've Googled the error but so far haven't > found an answer that applies. Any idea what the problem might be and > how I can get it to work? You can't use MsgBox in server-side code. Think about it. Who will be at the server's monitor waiting to click the OK button? -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
From: Bob L on 7 Dec 2005 13:38 That makes sense. Thanks. "Bob Barrows [MVP]" <reb01501(a)NOyahoo.SPAMcom> wrote in message news:OCB05w1%23FHA.140(a)TK2MSFTNGP12.phx.gbl... > Bob L wrote: >> I've inserted a MsgBox in some VBScript on line 12 of an .asp page >> and get the following error: >> >> Microsoft VBScript runtime error '800a0046' >> Permission denied: 'MsgBox' >> >> /default.asp, line 12 >> >> The script processes a form and other than this problem with MsgBox, >> the script works fine. I've Googled the error but so far haven't >> found an answer that applies. Any idea what the problem might be and >> how I can get it to work? > You can't use MsgBox in server-side code. Think about it. Who will be at > the > server's monitor waiting to click the OK button? > -- > Microsoft MVP -- ASP/ASP.NET > Please reply to the newsgroup. The email account listed in my From > header is my spam trap, so I don't check it very often. You will get a > quicker response by posting to the newsgroup. > >
From: Bob L on 7 Dec 2005 13:48 As a followup question, is there a way I can code in MsgBox in the .asp page so that it is processed on the client computer after being process by the server? "Bob L" <nospam(a)nospam.com> wrote in message news:OYoki11%23FHA.1048(a)TK2MSFTNGP10.phx.gbl... > That makes sense. Thanks. > > "Bob Barrows [MVP]" <reb01501(a)NOyahoo.SPAMcom> wrote in message > news:OCB05w1%23FHA.140(a)TK2MSFTNGP12.phx.gbl... >> Bob L wrote: >>> I've inserted a MsgBox in some VBScript on line 12 of an .asp page >>> and get the following error: >>> >>> Microsoft VBScript runtime error '800a0046' >>> Permission denied: 'MsgBox' >>> >>> /default.asp, line 12 >>> >>> The script processes a form and other than this problem with MsgBox, >>> the script works fine. I've Googled the error but so far haven't >>> found an answer that applies. Any idea what the problem might be and >>> how I can get it to work? >> You can't use MsgBox in server-side code. Think about it. Who will be at >> the >> server's monitor waiting to click the OK button? >> -- >> Microsoft MVP -- ASP/ASP.NET >> Please reply to the newsgroup. The email account listed in my From >> header is my spam trap, so I don't check it very often. You will get a >> quicker response by posting to the newsgroup. >> >> > >
From: Bob Barrows [MVP] on 7 Dec 2005 14:25
Somebody posted an example a while back of response.writing a client-side script block containing a statement that would be executed in the window_onload event. Something like this: <%="<script type='text/javascript'>msgbox 'some message'</script>"%> Bob L wrote: > As a followup question, is there a way I can code in MsgBox in the > .asp page so that it is processed on the client computer after being > process by the server? > > > "Bob L" <nospam(a)nospam.com> wrote in message > news:OYoki11%23FHA.1048(a)TK2MSFTNGP10.phx.gbl... >> That makes sense. Thanks. >> >> "Bob Barrows [MVP]" <reb01501(a)NOyahoo.SPAMcom> wrote in message >> news:OCB05w1%23FHA.140(a)TK2MSFTNGP12.phx.gbl... >>> Bob L wrote: >>>> I've inserted a MsgBox in some VBScript on line 12 of an .asp page >>>> and get the following error: >>>> >>>> Microsoft VBScript runtime error '800a0046' >>>> Permission denied: 'MsgBox' >>>> >>>> /default.asp, line 12 >>>> >>>> The script processes a form and other than this problem with >>>> MsgBox, the script works fine. I've Googled the error but so far >>>> haven't found an answer that applies. Any idea what the problem >>>> might be and how I can get it to work? >>> You can't use MsgBox in server-side code. Think about it. Who will >>> be at the >>> server's monitor waiting to click the OK button? >>> -- >>> Microsoft MVP -- ASP/ASP.NET >>> Please reply to the newsgroup. The email account listed in my From >>> header is my spam trap, so I don't check it very often. You will >>> get a quicker response by posting to the newsgroup. -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup. |