ASP.NET MVC: Optionally render element attribute

Posted by majkinetor on Stack Overflow See other posts from Stack Overflow or by majkinetor
Published on 2010-03-18T17:37:37Z Indexed on 2010/03/18 19:41 UTC
Read the original article Hit count: 170

Filed under:

I know there is some syntax with ? to optionally render attribute. But I can't find it now that I need it ...

Something like:

 < input checked=<%? model.IsActivated % >  ...

Thanks.

© Stack Overflow or respective owner

Related posts about asp.net-mvc