500 Internal Server Error when code is in include file
On my own dev server, it works fine, but on a hosted server I am getting a 500 Internal Server error. Maybe there is a better way to do this.
I need some common asp code for multiple pages. If I use <!--#include file="common.asp"--> and in the .asp file just have
then I get an error. If I remove the <% and %> then no error, but of course the code is just returned (in this case "Dim strTest"). The main page is also a .asp file.
Using .inc instead of .asp doesn't make a difference. It was suggestetd to use .asp for the include file so that the script cannot be returned to the visitor if they type in the file name somehow.
Any ideas?
Thanks!!
vconfused, February 10th, 2010 10:24 PM
Bookmarks