Wrox Programmer Forums
|
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
 
Old September 9th, 2004, 09:39 AM
Authorized User
 
Join Date: Jun 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old September 9th, 2004, 10:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old September 9th, 2004, 10:35 AM
Authorized User
 
Join Date: Jun 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old September 9th, 2004, 01:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
 
Old September 9th, 2004, 04:13 PM
Authorized User
 
Join Date: Jun 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


 
Old September 10th, 2004, 03:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert html to pdf file by using asp.net in c# dey.susanta.kolkata ASP.NET 2.0 Professional 4 September 19th, 2016 07:20 AM
APPEND TO ALREADY EXSISTING HTML OR ASP FILE? ALEX_GRIM Classic ASP Basics 11 February 2nd, 2005 05:40 PM
APPEND TO ALREADY EXSISTING HTML OR ASP FILE? ALEX_GRIM Classic ASP Professional 0 January 11th, 2005 11:55 PM
store html code in a sql database through ASP.NET jmjyiannis VB.NET 2002/2003 Basics 0 July 9th, 2004 01:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.