| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 48998 | 2004-09-07 07:06:00 | ASP - Setting Up to Use | GrahamB (750) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 270111 | 2004-09-07 07:06:00 | I am starting to work with ASP to develop a website. I have several books and websites on 'the basics' but like so many Computer-related books etc they start at a presumed level of competency that I have yet to attain! While I do not intend to run the Website from my computer as a server, obviously I need to be able to run it while I learn and create the website. To this end I have added IIS from my XP Pro SP1 disk. I have typed in a simple <%= now %> function in a simple HTML document, and it runs OK as as an HTML doc but there is no recognition of the ASP component. What have I done wrong? Greatly appreciate advice at a low level of presumed competency!!!! Regards Graham Bockett |
GrahamB (750) | ||
| 270112 | 2004-09-07 07:39:00 | The file needs to be saved to wherever the IIS "webhome" folder is. In order for IIS to pick up that it needs to do some processing before transmitting the page, you need to save the document with a .asp extension rather than a .html extension. |
antmannz (28) | ||
| 270113 | 2004-09-07 13:19:00 | C:\Inetpub\wwwroot is where you would put your database and asp files. You also need to set up a link to the database: Control Panel - Administrative Tools - Data Sources(ODBC) - System DNS tab - Add |
Rob99 (151) | ||
| 270114 | 2004-09-08 03:56:00 | Thanks antmannz But is your advise in conflict with ROB99? Or is the IIS webhome folder called Inetpub/wwwroot? Either way, when I rename the file extension and put the file in Inetpub/wwwroot it is not working. Rob mentions the database file. Judging from the stage I am at, it does not seem that I have to concern myself with a database at present as the only actions my basic program is supposed to do is: 1 Tell the current date/time, and 2 Do a simple math calc. It is doing neither! Sreams of HEEEEEEELLLLLLLLLLLLPPPPPPPPPPPPP!!!!!!!!!!!!!!!!! !!! echo down the page of history! TFYH Graham |
GrahamB (750) | ||
| 270115 | 2004-09-08 04:12:00 | We were both talking about the same thing. If you are just writing html and saving them as asp then putting them in the wwwroot folder they should work fine. You could check that the wwwroot folder is shared. |
Rob99 (151) | ||
| 270116 | 2004-09-08 05:05:00 | Yep, we were talking about the same thing. You shouldn't need an ODBC connection until you start working with databases tho. When you open the file in the browser, do not open it using the filesystem pathname. You need to use its URL. So .... in the browser: c:\inetpub\wwwroot\thefile.asp = bad localhost = good. |
antmannz (28) | ||
| 270117 | 2004-09-09 05:18:00 | YeeHaa!!!!! Thanks very much. The 'localhost' was the missing key. Now I know what the date is!!! TFYH Graham Bockett |
GrahamB (750) | ||
| 1 | |||||