 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

September 9th, 2004, 09:39 AM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ASP code in html file
Hi guys, could I run a small piece of ASP code in a HTMl file (.htm)?
I remember I read somewhere this was possible, but it doesn't work on my web, although my server supports .asp page very well.
Thanks!
Cinderella
|
|

September 9th, 2004, 10:19 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
|
|
The server has to be set-up to pass html pages through the asp processor (asp.dll). If you have control over the server you can do this by right-clicking your application in the IIS MMC and choosing properties. Then click the Configuration button and add an entry for .html files on the Mappings tab (the values should be the same as for .asp files).
hth
Phil
|
|

September 9th, 2004, 10:35 AM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Phil,
I appreciated your reply, but could you be more specific on "right-clicking your application in the IIS MMC"? When you said my application, did you refer to the html page I was using to run my ASP code? If so, there is no Configuration button in Properties. I also checked in the properties of my web in IIS MMC and there was no such a button, either.
Thank you!
Cinderella
|
|

September 9th, 2004, 01:07 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
|
|
I mean the properties of the IIS application/virtual directory which serves as the root of your site. You should find the configuration button on the first tab near the application name.
|
|

September 9th, 2004, 04:13 PM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sorry but I still don't get that configuration button.
Here are all the buttons I have got when I bring up the "properties" window of my root web:
Default Web Site Properties
Directory Security, HTTP Headers, Custom Errors, Server Extensions, Web Site, ISAPI Filters, Home Directory, Documents
Thank you!
Cinderella
|
|

September 10th, 2004, 03:08 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Ah I see where the confusion lies now. On the properties of the Default Web Site you'll find the Configuration button on the 'Home Directory' tab.
(Sorry, I was assuming you were looking at the properties of an application under the Default Web Site, in which case its right there on the first tab 'Virtual Directory '.)
rgds
Phil
|
|
 |