I have something like this:
public class MyClass
{
public int Id {get;set;}
public bool First {get;set;}
public bool Second {get;set;}
public bool Third {get;set;}
}
Now, i want to generate something, that will display this:
First - [checkbox]
Second - [checkbox]
Third - [checkbox]
[Submit]
And i want those checkboxes to select only one item from those properties, how can i do it?
Edit: Sorry guys, i don't really need checkboxes, what i need is radiobuttons for that. If someone has any example code that shows how to solve my problem using radiobuttons, i would be grateful.