mvc bind/post boolean to radiobutton

Posted by Xuan Vu on Stack Overflow See other posts from Stack Overflow or by Xuan Vu
Published on 2010-05-06T19:48:08Z Indexed on 2010/05/06 19:58 UTC
Read the original article Hit count: 203

Filed under:
|
|

Hi all, I have a column in my Model with a NULLABLE boolean value. Now on my View (for editing), I would like to bind that to two radiobuttons: Yes & No. If the value is null, then just have the two radiobutton un-checked. How would I go to do that?

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc