Carrotware.Web.UI.Controls.BasicControlUtils.GetWebResourceUrl C# (CSharp) Method

GetWebResourceUrl() public method

public GetWebResourceUrl ( Page page, Type type, string resource ) : string
page System.Web.UI.Page
type System.Type
resource string
return string
        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;
        }

Same methods

BasicControlUtils::GetWebResourceUrl ( Type type, string resource ) : string