Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot display asp

Status
Not open for further replies.

88weird

Technical User
Feb 2, 2003
4
US
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=&quot;VBSCRIPT&quot; %>


<HTML>
<HEAD>
<TITLE>Demo ASP page</TITLE>
</HEAD>
<BODY>


<h1>just some standard html</h1>
<%
response.write(&quot;using asp to write to the page&quot;)


'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 = &quot;Sunday&quot;
elseif weekDayValue = 2 then
weekDayActual = &quot;Monday&quot;
elseif weekDayValue = 3 then
weekDayActual = &quot;Tuesday&quot;
elseif weekDayValue = 4 then
weekDayActual = &quot;Wednesday&quot;
elseif weekDayValue = 5 then
weekDayActual = &quot;Thursday&quot;
elseif weekDayValue = 6 then
weekDayActual = &quot;Friday&quot;
elseif weekDayValue = 7 then
weekDayActual = &quot;Saturday&quot;
else
weekDayActual = &quot;Ooops, something's not right here!&quot;
end if
%>


<p>
Today is <b><i><%= weekdayActual %></i></b>


</BODY>
</HTML>
 
Thanks all your efforts to fix my problem with ASP. I do reinstallation of IIS ASAP. will let u know the results.

What about is there any &quot;Services&quot; need to be started to ASP... I mean &quot;ASP services&quot; similart to other services like &quot;IIS&quot;. ?.

Rgds - Ahmed
 
thanks meritros, it works fine now. I was unaware that you couldn't call upon asp pages that way. When I use localhost through the address bar it works great.

Thanks again, my headache is gone now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top