----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Raj_MS Message 2 in Discussion The .config files control only the file extensions that have been associated with ASP.NET. I am talking about the association made in IIS. The reason aspx, cs etc work is that they have been associated with ASP.NET, and .js does not work because it has not. To associate .js or any other extension such that you can control it's handling via the .NET .configs, do the following: In Internet Information Server Manager, right-click the root of your web application and choose Properties. Go to the Directory tab, and click the Configuration button. In the Application Configuration dialog that comes up, the first tab is Mapping. This shows what extensions are handled by what. For example, .idq is handled by %windir%\system32\idq.dll, and .aspx is handled by %FrameworkDir%\aspnet_isapi.dll. Ensure that .js (and whatever other extensions you want to control) are handled by ASP.NET, which is %FrameworkDir%\aspnet_isapi.dll. Read my (ancient) article here: http://www.microsoft.com/india/msdn/articles/34.aspx It touches on this topic. Regards Raj ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
