Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Expertise: Beginner
Nov 17, 2001



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Use ASP in your .js, .vb, and .css Files

Open Internet Services Manager from the Administrative Tools group. Right-click on your server and select properties. From Master Properties choose WWW Services and click the "Edit..." button. Select the Home Directory, and under Application Settings click the "Configuration..." button.

In the list, you should see an item for ASP that looks like this:
asp C:\WINNT\System32\inetsrv\asp.dll GET,HEAD,POST,TRACE

You need to click the Add button and add a similar item for your .js, .vb, css files. Be sure to check the Script Engine checkbox for this to work.

For example:
js C:\WINNT\System32\inetsrv\asp.dll GET,HEAD,POST,TRACE

Also consider using the appropriate ContentType header for the type of file you are returning.
Response.ContentType = "text/javascript"
Response.ContentType = "text/vbscript"
Response.ContentType = "text/css"
Chris Craft
Thanks for your registration, follow us on our social networks to keep up-to-date