Just thinking out loud about the subject, If I have the following:
<%= Html.EditorFor(m => m.Gender, "Gender")
And I want it to render two radio buttons:
O Male O Female
Assuming the class just has a string to hold the value, what would the Gender.ascx look like if we were to pass the Gender values using something like
ViewData["Gender"] = new string[] {"Male", "Female"};
This is a Radio button example (Yes No):
And another Radio Button set (Gender):
And a Drop Down Menu (Marital Status):
Now I need to modify these to look for a matching ViewData[“”] list of options or figure out how to pass a selection list to the partial UI Template.