public string GetWebResourceUrl(Page page, Type type, string resource) { string sPath = ""; try { sPath = page.ClientScript.GetWebResourceUrl(type, resource); sPath = HttpUtility.HtmlEncode(sPath); } catch { } return sPath; }