看到此贴的都进来帮忙解决个问题!关于判断的~谢谢了! string name="abc你好123a";怎么来判断这一字符中有没有中文字符出现~if(有){ Response.Write("有中文字符");}esle{ Response.Write("没有中文字符");}谢谢大家了!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public static boolean hasFullSize(String inStr){ if (inStr.getBytes().length != inStr.length()) { return true; } return false; } http://www.cnblogs.com/fxllx82/archive/2008/04/15/1154534.html Regex r=new Regex(@"[\u4e00-\u9fa5]"); if(r.IsMatch("abc你好123a")) { Response.Write("有中文字符"); } else { Response.Write("没有中文字符"); } 怎么给gridview 加多行脚标题行? Button的width="0px"在ie8中无效了 [交流贴]工作中怎么提高自己的技术水平 asp查询sqlserver数据库中某个时间段数据的问题 组字符串. 江湖救急啊!帮帮忙! 请教有经验的高手 Repeater显示新闻后面显示new小图标问题.代码如下 这是不是VS .net的bug,<meta>没有闭合 求哪位大神有ASP.NET从入门到精通第三版的光盘,找了好多地方都没找到,谢谢! 我要的是在客户端打开excel文件而不是在服务器上 关于:FreeTextBox 兼容问题
if (inStr.getBytes().length != inStr.length()) {
return true;
}
return false;
}
Regex r=new Regex(@"[\u4e00-\u9fa5]");
if(r.IsMatch("abc你好123a"))
{
Response.Write("有中文字符");
}
else
{
Response.Write("没有中文字符");
}