如何将小写字母转换为大写字母? [英] How do I convert smallletters into capital letters?

查看:274
本文介绍了如何将小写字母转换为大写字母?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想同时了解背后的代码和内联代码技术.

I would like to know both code behind and inline code technique.

推荐答案

背后的代码:
Code Behind:
String str = "abcd";
String strUpper = str.ToUpper();


Javascript:


Javascript:

var str = "abcd";
var strUpper = str.toUpperCase();


嘿,

我找到了一个很好的解决方案,可以在
对句子加盖
http://www.mardymonkey .co.uk/blog/index.php/2010/01/auto-capitalise-a-text-control-in-wpf/

它也适用于段落
hey,

I found a good solution to caps the sentences at

http://www.mardymonkey.co.uk/blog/index.php/2010/01/auto-capitalise-a-text-control-in-wpf/

it works for paragraphs too


这篇关于如何将小写字母转换为大写字母?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆