- class="col-2">
- class="form-control form-control-sm">@Html.DisplayFor(model => model.PTWContent.PTWNo)
Asp.net core Change span color if @Html.DisplayFor has no data
I want to have the textbox color yellow if there is no data retrieved from the database and to display "N/A". Is possible?


Yogeshkumar HadiyaRank #358 · 7K reputationPosted Dec 23, 2020, 11:53 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Dec 24, 2020, 6:24 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Dec 24, 2020, 1:16 AM EST