public static string ResolveUrl(string url) { if (url != null && url.Length > 0 && url.Substr(0, 2) == "~/") return Q.Config.ApplicationPath + url.Substr(2); else return url; } }