Beispiel #1
0
        /// <summary>
        /// Returns the relative path for the specified virtual path.
        /// </summary>
        /// <param name="url">The URL.</param>
        /// <returns>The resolved path.</returns>
        public string Resolve(string url)
        {
            HttpContextBase httpContext    = new HttpContextWrapper(HttpContext.Current);
            RequestContext  requestContext = httpContext.RequestContext();
            UrlHelper       helper         = new UrlHelper(requestContext);

            string query;

            url = StripQuery(url, out query);

            return(helper.Content(url) + query);
        }