Click here to Skip to main content
12,753,195 members (39,599 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Stats

84.1K views
625 downloads
49 bookmarked
Posted 10 Jan 2006

Using the FileResolver to allow virtual application paths ( ~ ) in any file

, 10 Jan 2006
Introduces a solution for using virtual app paths in non ASP.NET files.
<?xml version="1.0"?>
<configuration>
	<system.web>
		<httpHandlers>
			<add verb="GET" path="*.css.ashx" type="FileResolver"/>
			<add verb="GET" path="*.js.ashx" type="FileResolver"/>
		</httpHandlers>
		<compilation debug="true">
			<assemblies>
				<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
			</assemblies>
		</compilation>
		<authentication mode="Windows"/>
	</system.web>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Bobby DeRosa
Web Developer
United States United States
I currently work for a company in San Diego, CA authoring server controls.

Get the latest up to date code at http://www.csharper.net

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 10 Jan 2006
Article Copyright 2006 by Bobby DeRosa
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid