PDA

View Full Version : Inserting the date


integra
04-08-2005, 02:28 AM
Hi. I'm new to ASP and i'm trying to insert the date into a webpage. I can't figure out where i'm going wrong. Here is what I have...


<%@language="VBScript"%>
<html>
<head>
<title>Simple ASP</title>
</head>
<body>
<%
Dim dtNow
dtNow = Now()
Response.Write FormatDateTime(dtNow, vbGeneralDate)
%>
<BR>
Hello user!
</body>
</html>


Any ideas? Thanks :)

integra
04-08-2005, 02:57 AM
I just tried some sample html code with ASP I found on the net, very simple stuff and even that won't work. IS there something wrong with my computer which makes it unable to display ASP code?

Also, when I open the ASP file it opens in a small window and the address bar disappears. What's going on?! Help! :confused:

glenngv
04-08-2005, 06:41 AM
Is the IIS server properly set up?

integra
04-08-2005, 10:19 AM
Hey. What is an IIS server? Excuse my denseness, I've literally been attempting ASP for 10 minutes! :rolleyes:

glenngv
04-08-2005, 10:30 AM
http://www.w3schools.com/asp/asp_install.asp

integra
04-08-2005, 10:32 AM
Great, apparently I can't run ASP on XP Home. :(

chud_wallice
04-11-2005, 03:43 PM
officially you can't but the word on the street is that its possible....

http://www.webthang.co.uk/tuts/tuts_server/iis_xph/pippo_xp.asp

i haven't tried it.

you could always get some cheap/free hosting and test your pages there.

hth

miranda
04-12-2005, 06:52 AM
i have gotten IIS to install on one of my machines that runs XP Home. However on another one, It installed the IIS but did not give me iis.mc Keep in mind that you MUST grab the IIS files off of a W2k disk and not an XP Pro disk in order to get this to work. However, Since you are learning asp, why not learn asp.net instead of classic asp? This way you are learning the newest version and not an outdated version. To run asp.net on XP Home you can install the microsoft web matrix (http://www.asp.net/webmatrix/default.aspx?tabIndex=4&tabId=46) which includes the cassini web server which runs on XP home.

If you still want to learn classic asp try this Baby Web Server 2.5 (http://www.pablovandermeer.nl/web_server.html) supposedly it will work fine on XP Home