protected void Page_Load(object sender, EventArgs e) { LoadTags(); if (TagSortList != null) { TagSortList.DataSource = TagCloudCore.GetSortNames(SortingOptions); TagSortList.DataBind(); } }
public ActionResult Index() { if (TagCloudCore.Tags.Any() && MaximumCount > 0) { var model = new TagCloudRenderingModel { SortNames = TagCloudCore.GetSortNames(SortingOptions), Tags = GetTagRenderingModels() }; return(View("~/Views/WeBlog/TagCloud.cshtml", model)); } return(null); }