protected void BindGradeCheckExcelTemplate(HtmlGenericControl span,bool isDelete) { DalOperationAboutGradeCheck dos = new DalOperationAboutGradeCheck(); DataTable dt = dos.GetGradeCheckExcelTemplate().Tables[0]; string _ids = string.Empty; for (int i = 0; i < dt.Rows.Count; i++) { _ids = dt.Rows[i]["excelTemplateAttachmentIds"].ToString().Trim(); } hidAttachmentId1.Value = _ids; if (_ids.Length > 0) { DalOperationAttachments dalOperationAttachments = new DalOperationAttachments(); span.InnerHtml = dalOperationAttachments.GetAttachmentsList(_ids, ref iframeCount1, isDelete, "1"); } }