Home
Manage Your Code
Snippet: Standardized Application Path (C#)
Title: Standardized Application Path Language: C#
Description: Provides a fix for the inconsistenies in Request.ApplicationPath. Views: 276
Author: Joel Ross Date Added: 2/23/2006
Copy Code  
1public static readonly string ApplicationPath = (HttpContext.Current.Request.ApplicationPath == "/" ? "" : HttpContext.Current.Request.ApplicationPath);