private Panel FileDiv(JobFile file) { Panel pnlFile = new Panel(); if (!curJob.IsArchived) { // just url with qs LiteralControl hlFile = new LiteralControl(AdminUtils.LinkToGetFilePage_Image(file, "employees") + " " + AdminUtils.LinkToGetFilePage_Text(file, "employees")); pnlFile.Controls.Add(hlFile); } else // archived - no link { LiteralControl fileWithImg = new LiteralControl(AdminUtils.FileIcon() + " " + file.Name + " (archived)"); pnlFile.Controls.Add(fileWithImg); } return(pnlFile); }