I am using MVC3 (C#) and I need to hard code the data in a DropDownList. I am beginner and ould like something simple.
I need to create a DropDownList (Hardcoding Data)
Collapse
X
-
Tags: None
-
I am creating Entity for Person
I need to hardcode the following
Gender : "M" | "F"
Marital Status : "Single" | "Married" | "Widowed"
Civil Status : "Mr." | "Mrs." | "Miss."
I managed to do this yersterday after searching the internet But this morning my program had resorted to a previous version and I just don't remember which site gave me the answer.
But I believe I used DrodDownList (.....) in the Create.cshtml
I am sorry for the inconvenienceComment
Comment