I recently bought a book to learn ASP. I copied an ASP file from this book and tested it using MS Personal Web Server. The block of VBScript code didn't get executed. Is there any problem with this block of code:
<%@ LANGUAGE = "VBScript" %>
<html><head></head>
<body>
Today is <%= Now %>.
<% if Weekday(Now) = vbSaturday then
response.write "Have a good weekend!"
else
response.write "Hang in there.....!"
end if %>
</body></html>
The output was:
Today is.Have a good weekend!Hang in there......!
Please can anybody help this struggling novice.
<%@ LANGUAGE = "VBScript" %>
<html><head></head>
<body>
Today is <%= Now %>.
<% if Weekday(Now) = vbSaturday then
response.write "Have a good weekend!"
else
response.write "Hang in there.....!"
end if %>
</body></html>
The output was:
Today is.Have a good weekend!Hang in there......!
Please can anybody help this struggling novice.