更新时间:2023-11-21 18:29:04
I would use CSS for this.
Just add text-transform: uppercase to your styling, and then on the server side you can convert it to uppercase.
text-transform: uppercase
input { text-transform: uppercase; }
如何使文本字段中的所有内容都是大写字母/大写?
WPF / XAML:如何使所有文字大写的TextBlock的?