Hi
I want to Disable btnADd if column.status = "O"
try
{
StringBuilder htmlTable =new StringBuilder();
StringBuilder htmlTable =
new
StringBuilder();
string ParticipantType ="";
string
ParticipantType =
""
;
BALTrainingHeader bALTrainingHeader =new BALTrainingHeader();
BALTrainingHeader bALTrainingHeader =
BALTrainingHeader();
List<TrainingHeader> Result = bALTrainingHeader.GetRecordListDrafted();
if (Result !=null)
if
(Result !=
null
)
BALEmployee bALEmployee =new BALEmployee();
BALEmployee bALEmployee =
BALEmployee();
htmlTable.Append("<table class='table table-bordered table-hover datatable-highlight' id='tbldata'>");
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>");
"<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>");
"<tbody>"
foreach (var columin Result)
foreach
(var colum
in
Result)
htmlTable.Append("<tr>");
"<tr>"
htmlTable.Append("<td style='display:none'>" + colum.TrainingID +"</td>");
"<td style='display:none'>"
+ colum.TrainingID +
"</td>"
htmlTable.Append("<td>" + colum.TrainingNumber +"</td>");
"<td>"
+ colum.TrainingNumber +
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>");
"<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>");
"</tr>"
}
htmlTable.Append("</tbody>");
"</tbody>"
htmlTable.Append("</table>");
"</table>"
PlaceHolderTable.Controls.Add(new Literal { Text = htmlTable.ToString() });
PlaceHolderTable.Controls.Add(
Literal { Text = htmlTable.ToString() });
Thanks