Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language:
Expertise: Beginner
Nov 17, 2001

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.

 

 

Sitemap