Hi
In below code i want i Status = Blocked then Delete Icon should be disabled.
C#
htmlTable.Append(" ");Thanks
Hi
In below code i want i Status = Blocked then Delete Icon should be disabled.
htmlTable.Append(" ");Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Gowtham CpRank #1,552 · 1K reputationPosted Aug 23, 2024, 1:50 PM EDT
Refer the below code:
string status = "Blocked"; // Your status htmlTable.Append(""); htmlTable.Append(""); string deleteAttributes = status == "Blocked" ? "style='pointer-events: none; opacity: 0.5;' onclick='return false;'" : "data-toggle='modal' data-target='#modal_Delete' onclick='BindData(this);'"; htmlTable.Append($""); htmlTable.Append("");