ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 27th, 2003, 09:43 PM
black black is offline
flashing vampire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: nowhere
Posts: 19 black User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
msgbox for ASP ?

i found this function msgbox in VBScript contents of my book but when i write somthing with it the browser report an error, is that because msgbox function couldnt be available for ASP ?

Regards~

Reply With Quote
  #2  
Old August 27th, 2003, 09:49 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 25 m 29 sec
Reputation Power: 688
msgbox will need to run on the client browser, not in server-side asp code.

Reply With Quote
  #3  
Old August 27th, 2003, 10:24 PM
black black is offline
flashing vampire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: nowhere
Posts: 19 black User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

thanx for quick reply~

ok i insert code block into Html page but still reponds nothing, the code is right below, i'd appreciate of any advice.
PHP Code:
<script language="vbscript">
dim msg "test~"
MsgBox msg
</script>
 

Reply With Quote
  #4  
Old August 27th, 2003, 11:30 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,703 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 25 m 29 sec
Reputation Power: 688
VBScript is supported by Internet Explorer, but most other browsers will not execute VBScript.

Also, in asp you can't dim msg = "test-"


You dim msg
msg = "test"
msgbox msg

Reply With Quote
  #5  
Old August 28th, 2003, 12:52 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
Oh but think of all the poor netscape users! (no really, just think about them and how bad it must be to use netscape ahem, anyways.....meanwhile, welcome to javascript which is widely supported, use these

<script>
confirm('blah')
alert('blah')
prompt('blah')
</script>

just as easy!

Reply With Quote
  #6  
Old August 28th, 2003, 01:43 AM
black black is offline
flashing vampire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: nowhere
Posts: 19 black User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Doug G
VBScript is supported by Internet Explorer, but most other browsers will not execute VBScript.

Also, in asp you can't dim msg = "test-"


You dim msg
msg = "test"
msgbox msg


i modified code into this and still got an error:
PHP Code:
<%
    
dim msg
    msg 
"test~"
    
MsgBox(msg)
%> 

the browser reports Microsoft VBScript running error (0x800A0046)

Reply With Quote
  #7  
Old August 28th, 2003, 02:31 AM
kkong's Avatar
kkong kkong is offline
Monkey Magic
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: UK
Posts: 103 kkong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to kkong
Hi Black

you need to drop the ASP quotes and add the script command around the code.

ie.

Code:

<SCRIPT LANGUAGE="VBScript">
    dim msg
    msg = "test~"
    MsgBox(msg)
</SCRIPT>




Kong.

Reply With Quote
  #8  
Old August 29th, 2003, 03:53 AM
black black is offline
flashing vampire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: nowhere
Posts: 19 black User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i got it ! thanx kkong



Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > msgbox for ASP ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway