private void RptContents_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem) { return; } var specialInfo = (SpecialInfo)e.Item.DataItem; var ltlTitle = (Literal)e.Item.FindControl("ltlTitle"); var ltlUrl = (Literal)e.Item.FindControl("ltlUrl"); var ltlAddDate = (Literal)e.Item.FindControl("ltlAddDate"); var ltlActions = (Literal)e.Item.FindControl("ltlActions"); ltlTitle.Text = $@"<a href=""{SpecialManager.GetSpecialUrl(SiteInfo, specialInfo.Url)}"" target=""_blank"">{specialInfo.Title}</a>"; ltlUrl.Text = specialInfo.Url; ltlAddDate.Text = specialInfo.AddDate.ToString("yyyy-MM-dd HH:mm"); ltlActions.Text = $@" <a class=""m-r-10"" href=""javascript:;"" onclick=""{ModalSpecialAdd.GetOpenWindowString(SiteId, specialInfo.Id)}"">编辑</a> <a class=""m-r-10"" href=""javascript:;"" onclick=""{ModalSpecialUpload.GetOpenWindowString(SiteId, specialInfo.Id)}"">上传压缩包</a> <a class=""m-r-10"" href=""{GetRedirectUrl(SiteId)}&specialId={specialInfo.Id}&download={true}"">下载压缩包</a> <a class=""m-r-10"" onclick=""{AlertUtils.ConfirmDelete("删除专题", $"此操作将删除专题“{specialInfo.Title}”及相关文件,确认吗?", $"{GetRedirectUrl(SiteId)}&specialId={specialInfo.Id}&delete={true}")}"" href=""javascript:;"">删除</a> "; }