예제 #1
0
        private static string BuildTag(TagModel model)
        {
            var tag = AjaxLinkBuilder.BuildAjaxLink(_targetId);

            tag.InnerHtml = GetTagInnerHtml(model.Tag.TagName, model.PicturesCount);

            tag.MergeAttribute("href", _url + "?tagId=" + model.Tag.TagId);

            tag.MergeAttribute("class", "tag s" + CalculateSize(model.PicturesCount));

            return(tag.ToString());
        }
예제 #2
0
        private static string BuildAllPicturesTag()
        {
            var tag = AjaxLinkBuilder.BuildAjaxLink(_targetId);

            tag.InnerHtml = "Все фотографии";

            tag.MergeAttribute("href", _url);

            tag.MergeAttribute("class", "tag s5");

            var div = new TagBuilder("div")
            {
                InnerHtml = tag.ToString()
            };

            return(div.ToString());
        }