At times I need to have the css class for div to have values, at other times I don't want to have class attribute or it's properties

<div class="highligh"> 

I have tried using a function as such

<div @GetCssClass(Model.IsThisPropertyHighlighted)>@Model.ThisProperty

but the problem is I can either get

<div > or <div class="">

Neither of them is satisfactory,

of course I also get <div class="highligh"> which is the only satisfactory case.

Related posts

Recent Viewed