|
-
Nov 19th, 2002, 12:12 AM
#1
Thread Starter
Hyperactive Member
MsgBox Promission Denied !
I hope other people get this error so i'm hoping someone will have an answer. this is my code.
VB Code:
<%
dim msg
msg = msgbox("Are you sure you wish to delete this news?",vbokonly,"Delete News")
%>
this is my error:
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied: 'msgbox'
Any suggestions?
-
Nov 19th, 2002, 12:24 AM
#2
Junior Member
you can use this...
<script langauge=VBScript>
<!--
dim strMsg
strMsg=msgbox "your msg"
-->
</script>
100% workable...
-
Nov 19th, 2002, 12:38 AM
#3
Junior Member
is my source code working??
-
Nov 19th, 2002, 12:49 AM
#4
Hyperactive Member
hi,
ur trying to use messagebox in the asp script.....it wont work?
r u trying to run some script on the server????
if u want to run some script on the server then try using scheduler.....
n if u want it to display on the client then use the solution provided by desperate.....
wat is the exact functionally u want to achieve?
regds,
ashay
"If you should die before me, ask if you could bring a friend."
- Stone Temple Pilots
-
Nov 19th, 2002, 11:50 AM
#5
Frenzied Member
Don't use Msgbox on the web...
Unless you have debugging enabled on the server you can't use Msgbox in server side ASP code, and if you use it in client side script, it means you're using vbscript for client side script which you also shouldn't do.
Learn Javascript. It is easy to learn and the syntax is just as simple as vbscript.
For client side msgbox type functionality, use window.alert().
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|