Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Expertise: Beginner
Nov 17, 2001



Application Security Testing: An Integral Part of DevOps

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
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date