我如何获得aspx页面中的字符长度 [英] how can I get the character length of a in aspx page
本文介绍了我如何获得aspx页面中的字符长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须在我的cs页面中获得a的字符长度..
I have to get the character length of a in my cs page..
推荐答案
如果要检查字符数组的长度,则只需编写此字符..
if you want to check a leagth of you character array then simply write this..
char test = 'a';
int i = ((string)(test.ToString())).Length;
char[] test = new char[3];
test[0] = 'a';
test[1] = 'b';
test[2] = 'c';
int l = test.Length;
或其他任何东西,然后请显示您的代码,因此很明显,您真正想要的是...
or any thing else then please show your code, so it is clear that what you actually want...
这篇关于我如何获得aspx页面中的字符长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文