Click here to Skip to main content
11,493,233 members (64,004 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
Add your own
alternative version

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

, 10 Jan 2006 77.7K 612 49
Introduces a solution for using virtual app paths in non ASP.NET files.
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="default.aspx.cs" Inherits="DefaultPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
	<head runat="server">
		<title>FileResolver Demo Web</title>
		<link rel="stylesheet" href="~/styles/stylesheet.css.ashx" />
		<script language="javascript" src="~/scripts/javascript.js.ashx"></script>
		<form id="Form1" method="post" runat="server">
			FileResolver Test Page

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.


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


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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 10 Jan 2006
Article Copyright 2006 by Bobby DeRosa
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid