vendredi 3 mars 2017

How to check bit checkbox true or false

how to check bit cell is MSSQL database where is bit type with true(1) or False(0), inserted by checkbox.

Now i need in razor view to check and diferent message

i have this code:

      @if (item.odobreno == false)
                {
                <div>UNPAIED</div>
                }
                else
                {
                <div>PAIED</div>
                }

But allways i get result "FALSE"

Aucun commentaire:

Enregistrer un commentaire