Exemple #1
0
        public string ToHtmlString()
        {
            var toAdd = DataTypeUtils.GetHtmlTagContentFromContextualAttributes(this);

            return("<img" + toAdd + " src='" + Url + "' />");
        }
        public string ToHtmlString()
        {
            var toAdd = _parent == null ? string.Empty : DataTypeUtils.GetHtmlTagContentFromContextualAttributes(_parent);

            return(string.Format("<a{0} target='{1}' href='{2}'>{3}</a>", toAdd, NewWindow ? "_blank" : "_self", Url, Caption));
        }