How to Capitalize names

前端 未结 9 1809
余生分开走
余生分开走 2020-12-15 02:46

so basically if i want to transform a name from

stephen smith 

to

Stephen Smith

i can easily do it with c

9条回答
  •  隐瞒了意图╮
    2020-12-15 03:24

    in view

    string titulo = "";
    
    string result = System.Globalization.CultureInfo.TextInfo.ToLower(titulo);
    

    then apply css property

    text-transform = font-family: sans-serif;
    

提交回复
热议问题