display Time

J

japin0

This code below suppose to display time of my PC on the web but it
doesnt ..it just echos "Hello W3Schools!"


<html>
<body bgcolor="yellow">
<center>
<h2>Hello W3Schools!</h2>
<p><%Response.Write(now())%></p>
</center>
</body>
</html>

what is wrong?

rgds

cha
 
J

japin0

Hi Onin,
No ..It doesnt do anything..it just echoes W3School!

I have installed MS .net SDK2

rgds
cha
 
J

japin0

Ha..hah!! It is working ..I created a Virtual Directory and it is doing
wonders!!

Thank a million my friend

rgds
cha
 
J

Juan T. Llibre

Hmmm...

maybe you *are* trying to use asp, and not aspx.

Is that file's extension asp or aspx ?

For either case, use this :

<%=Response.Write(now())%>

Notice the equals sign, OK?



Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top