Hi
I want to Disable btnADd if column.status = "O"
try
{
StringBuilder htmlTable =new StringBuilder();
string ParticipantType ="";
BALTrainingHeader bALTrainingHeader =new BALTrainingHeader();
List<TrainingHeader> Result = bALTrainingHeader.GetRecordListDrafted();
if (Result !=null)
{
BALEmployee bALEmployee =new BALEmployee();
htmlTable.Append("<table class='table table-bordered table-hover datatable-highlight' id='tbldata'>");
htmlTable.Append("<thead><tr><th style='display:none'>#</th><th>Training Number</thth class='text-center nosort'>Actions</th><th class='text-center nosort'>Add</th></tr></thead>");
htmlTable.Append("<tbody>");
foreach (var columin Result)
{
htmlTable.Append("<tr>");
htmlTable.Append("<td style='display:none'>" + colum.TrainingID +"</td>");
htmlTable.Append("<td>" + colum.TrainingNumber +"</td>");
htmlTable.Append("<td class='text-center'> <a id='btnAdd' style='cursor:pointer;' class='list-icons-item text-primary-600' data-toggle='modal' data-backdrop='static' data-keyboard='false' data-target='#modal_form_horizontal' onclick='BindData(this);'><i class='icon-pencil7 mr-1'></i></a></td>");
htmlTable.Append("</tr>");
}
htmlTable.Append("</tbody>");
htmlTable.Append("</table>");
PlaceHolderTable.Controls.Add(new Literal { Text = htmlTable.ToString() });
}
}
Thanks