I am using windows xp and have iis 5.0 installed. I am new to asp and am trying to get my code to display in the browser. when i open it in internet explorer, I just get a blank page, or the html and it will not execute the asp scripts. I have tried several different asp files.
this is not my code i am just trying to get some examples to work
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>Demo ASP page</TITLE>
</HEAD>
<BODY>
<h1>just some standard html</h1>
<%
response.write("using asp to write to the page"
'PROGRAMMERS NOTE
'the line terminator in VBs is the carriage return!
'lets tell everyone what day of the week it is!
'get the current date
currentDate = Date
'extract the day of the week information
weekDayValue = weekday(currentDate)
'work out what the value is in real money
'PROGRAMMERS NOTE
'you could do this with a CASE statement
'so if you feel brave look up the SELECT CASE
'and use that instead of the big if
if weekDayValue = 1 then
weekDayActual = "Sunday"
elseif weekDayValue = 2 then
weekDayActual = "Monday"
elseif weekDayValue = 3 then
weekDayActual = "Tuesday"
elseif weekDayValue = 4 then
weekDayActual = "Wednesday"
elseif weekDayValue = 5 then
weekDayActual = "Thursday"
elseif weekDayValue = 6 then
weekDayActual = "Friday"
elseif weekDayValue = 7 then
weekDayActual = "Saturday"
else
weekDayActual = "Ooops, something's not right here!"
end if
%>
<p>
Today is <b><i><%= weekdayActual %></i></b>
</BODY>
</HTML>
this is not my code i am just trying to get some examples to work
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>Demo ASP page</TITLE>
</HEAD>
<BODY>
<h1>just some standard html</h1>
<%
response.write("using asp to write to the page"
'PROGRAMMERS NOTE
'the line terminator in VBs is the carriage return!
'lets tell everyone what day of the week it is!
'get the current date
currentDate = Date
'extract the day of the week information
weekDayValue = weekday(currentDate)
'work out what the value is in real money
'PROGRAMMERS NOTE
'you could do this with a CASE statement
'so if you feel brave look up the SELECT CASE
'and use that instead of the big if
if weekDayValue = 1 then
weekDayActual = "Sunday"
elseif weekDayValue = 2 then
weekDayActual = "Monday"
elseif weekDayValue = 3 then
weekDayActual = "Tuesday"
elseif weekDayValue = 4 then
weekDayActual = "Wednesday"
elseif weekDayValue = 5 then
weekDayActual = "Thursday"
elseif weekDayValue = 6 then
weekDayActual = "Friday"
elseif weekDayValue = 7 then
weekDayActual = "Saturday"
else
weekDayActual = "Ooops, something's not right here!"
end if
%>
<p>
Today is <b><i><%= weekdayActual %></i></b>
</BODY>
</HTML>