SHARE
TWEET

Untitled

a guest Mar 21st, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public enum Title
  2. {
  3.      [Display(Name = "Mr", ResourceType = typeof(Res.Title))]
  4.      Mr = 1,
  5.      [Display(Name = "Mrs", ResourceType = typeof(Res.Title))]
  6.      Mrs = 2,
  7.      [Display(Name = "Miss", ResourceType = typeof(Res.Title))]
  8.      Miss = 3
  9. }
  10.      
  11. <data name="Miss" xml:space="preserve">
  12.   <value>Mademoiselle</value>
  13. </data>
  14.      
  15. @Html.EnumDropDownListFor(m => m.Title)
  16.      
  17. <p>
  18.     @String.Format("{0} {1} {2}", (Title)Model.Person.Title), Model.Person.FirstName, Model.Person.LastName)
  19. </p>
  20.      
  21. <globalization uiCulture="fr-FR" culture="fr-FR" />
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top