Posts

Showing posts with the label ASP

Execute ASP in HTML pages

This is a little 'techy' for my typical blog posts, but I had a heck of a time finding an answer online. I recently got a new laptop and needed to reconfigure my ASP development environment. I kept running into one problem, where my home page displayed ASP code at the top ( <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> <% var openMenu; ...), instead of executing. Turns out you need to add to the basic ASP configuration to execute ASP code that is in HTML pages. Of course that seems like a no-brainer, but I don't recall having done that in the past. Here's the steps to do this: Go to Administrative Tools in the Control Panel Launch Internet Information Services (IIS) Go to your (default) website and open Properties Go to the Home Directory tab Click the Configuration.. button under the Application Settings section On the Mappings tab, click Add Enter the following information: Executable: c:\windows\system32\inetsrv\asp.dll Extension: .ht