Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

is there was a way of making a checkbox editor template or html helper for a Byte MVC model property? Someone else did ask basically the same thing here, Display a byte as a checkbox using a EditorTemplate?, whose solution I may end up using; furthermore, it links to somewhat related MVC3: Creating checkbox for nullable boolean. However, neither of these actually establish a working editor template/helper, so while I would assume that means I'm going to have to settle the matter somewhat unconventionally, I just wanted to double-check.

share|improve this question

You can use an EditorTemplate and a custom model binder for the byte type and checking in the binder if the type is boolean to return 1 or 0

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.