Hi
I have field IsActive as Bit DataType in Sql. If it is true i want Tick Box like below image should get displayed
@Html.DisplayNameFor(model => model.IsActive)

Thanks
Hi
I have field IsActive as Bit DataType in Sql. If it is true i want Tick Box like below image should get displayed

Thanks
Know the answer? Post it. Somebody with the same question will find it here.

Hi Sachin
Even in Active also it is printing X
@if (item.IsActive)
{
}
else
{
}
Thanks

Hi Sachin
I want Tick should appear in blue color.
@foreach (var item in Model.Locations)
{
@Html.DisplayFor(model => item.Id)
@Html.DisplayFor(model => item.Description)
@if(item.IsActive)
{
}
else
{
}
Thanks
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
Sachin SinghRank #66 · 26.2K reputationPosted Jun 15, 2021, 12:29 PM EDT
style="color:blue">Sachin SinghRank #66 · 26.2K reputationPosted Jun 15, 2021, 8:19 AM EDT