I need to create a DropDownList (Hardcoding Data)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Khathumetso
    New Member
    • Apr 2013
    • 2

    I need to create a DropDownList (Hardcoding Data)

    I am using MVC3 (C#) and I need to hard code the data in a DropDownList. I am beginner and ould like something simple.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What have you tried and where are you stuck?

    Comment

    • Khathumetso
      New Member
      • Apr 2013
      • 2

      #3
      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 inconvenience

      Comment

      Working...