Click here to Skip to main content
15,881,172 members
Articles / Web Development / CSS

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

Rate me:
Please Sign up or sign in to vote.
4.66/5 (17 votes)
10 Jan 20065 min read 113K   644   49  
Introduces a solution for using virtual app paths in non ASP.NET files.
<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="FileResolverDemoWeb.Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>FileResolver Demo Page</title>
		<link rel="stylesheet" href="styles/stylesheet.css.ashx" />
	</head>
	<body>
	<form id="Form1" method="post" runat="server">
		<script language="javascript" src="scripts/javascript.js.ashx"></script>
		FileResolver Demo Page
	</form>
	</body>
</html>

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


Written By
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

Comments and Discussions