HighDots Forums  

ASP Script, What's wrong?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss ASP Script, What's wrong? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AlanShaw
 
Posts: n/a

Default ASP Script, What's wrong? - 07-15-2004 , 12:20 AM






Can anybody see what is wrong with this code, I've taken it directly from a
book called 'ASP Made Simple'

It throws up an error with the 'Else scroller' statement.

<%
a=(Weekday(Now))
scroller=""
If(a=1 or a=7)then scroller="Thank you for visiting this site. We hope you are
having a good weekend, and we can help you in your employment search."
Else scroller="This week we have many exciting opportunities on-line for IT
professionals"
End if
temp="<br><font size=2 color=#221188><marquee width=230
scrollamount=2>"+scroller+"</marquee></font>"
response.write(temp)
%>


Reply With Quote
  #2  
Old   
JamesR
 
Posts: n/a

Default Re: ASP Script, What's wrong? - 07-15-2004 , 02:35 AM






it should be like this:
<%
a=(Weekday(Now))
scroller=""
If(a=1 or a=7)then
scroller="Thank you for visiting this site. We hope you are having a good
weekend, and we can help you in your employment search."
Else
scroller="This week we have many exciting opportunities on-line for IT
professionals"
End if
temp="<br><font size=2 color=#221188><marquee width=230
scrollamount=2>"+scroller+"</marquee></font>"
response.write(temp)
%>




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.