Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Display Date on Sitenews Page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

padawan
Junior Member

200 Posts

Posted - 18 January 2003 :  23:21:31  Show Profile
Hello, all!

For some reason, I can't get this piece of code to work. The idea is to display today's date "flushed right" of the "Site Portal" cell. Here's the code section I'm using:


<%
Response.Write "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" bgcolor=""blue"">" & vbNewLine & _
"<tr>" & vbNewLine & _
"<td valign=""top"" bgcolor=""green"">" & vbNewLine & _
"<font size=""3"" color=""white""><b> Site Portal</b></font>" & vbNewLine & _
"</td>" & vbNewLine & _
"<td bgcolor=""yellow"" align=""right"">" & vbNewLine & _
"<font size=""2"" color=""blue"">Today is <!--#include file="/dev/getdate.asp"--></font>" & vbNewLine
%>


Here's the error message I'm getting.


Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/dev/datescript.asp, line 9, column 77
"<font size=""2"" color=""blue"">Today is <!--#include file="/dev/getdate.asp"--></font>" & vbNewLine
----------------------------------------------------------------------------^


Here's the Date extractor javascript --> getdate.asp

All help/suggestions are greatly encouraged and appreciated.

- padawan

"...be mindful of the SnitzForce..."

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 18 January 2003 :  23:27:56  Show Profile
try changing this part:
<!--#include file=""/dev/getdate.asp""-->

you need two double quotes since it's in a response.write

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

padawan
Junior Member

200 Posts

Posted - 19 January 2003 :  10:11:43  Show Profile
quote:
Originally posted by Nikkol

try changing this part:
<!--#include file=""/dev/getdate.asp""-->

you need two double quotes since it's in a response.write



thanks, Nikkol! DJBBIZ helped me out and got the date fixed up. Here's the sample site:

http://padawan.www3.dotnetplayground.com/profgomez/

the date is 'flushed right' in the same cell as the "Welcome to..." cell.

- padawan


"...be mindful of the SnitzForce..."
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07