我只需要在文本框中添加大写字母? [英] I need to add capital lettors only in textbox?
本文介绍了我只需要在文本框中添加大写字母?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,先生,
我只需要在文本框中添加大写字母?我是说通过正则表达式?
谢谢与问候
Shamna
Hello Sir,
I need to add capital lettors only in textbox? I mean via regular expression?
Thanks & Regards
Shamna
推荐答案
亲爱的朋友,
我认为此链接可以解决您的问题:-
http://social.msdn.microsoft.com/Forums/eu/csharpgeneral/thread/a61ef305-eb20-4691-b535-e83c0a3ba629 [
Dear Friend,
I think this link is the solution to your problem:-
http://social.msdn.microsoft.com/Forums/eu/csharpgeneral/thread/a61ef305-eb20-4691-b535-e83c0a3ba629[^]
I hope this will help you out. Don''t forget to mark this as your answer.
Thanks
引用这些链接
http://www.dotnetspider.com/forum/298319-Regular-expression-capital- letters.aspx [ ^ ]
http://geekswithblogs.net/brcraju/articles/235.aspx [
Refer these links
http://www.dotnetspider.com/forum/298319-Regular-expression-capital-letters.aspx[^]
http://geekswithblogs.net/brcraju/articles/235.aspx[^]
您可以通过将CSS应用于文本框来实现.
喜欢,
Hi,
You can do it by applying CSS to the text box.
like,
<style>
.upper
{
text-transform:uppercase ;
}
</style>
然后在文本"框中调用Css,
then calling Css in Text box,
<asp:textbox id="txtName" runat="server" cssclass="upper" xmlns:asp="#unknown"></asp:textbox>
问候,
朋友
regards,
Pal
这篇关于我只需要在文本框中添加大写字母?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文