随笔 - 281  文章 - 24 评论 - 43 阅读 - 23万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  阿C的代码库

[转]C# 判断是否为数字
摘要:1、int n;string str="xxx";if(int.TryParse(str,out n)){ //为数字}else{//非数字}2、1、string mailto:pat=@%22[\u4e00-\u9fa5]";Regex rg=new Regex(pat);Match mh=rg.Match(textBox1.Text);if(mh.Success){//是汉字}2、functi... 阅读全文
posted @ 2009-07-22 02:25 阿C's 阅读(1224) 评论(0) 推荐(0) 编辑
ASCII 表(字符与编码对照表)
摘要:http://zfw001.bokee.com/4476391.htmlDecimalOctalHexCharacterDescription0000NUL1101SOHstart of header2202STXstart of text3303ETXend of text4404EOTend of transmission5505ENQenquiry6606ACKacknowledge7707... 阅读全文
posted @ 2009-06-12 19:00 阿C's 阅读(600) 评论(0) 推荐(0) 编辑
asp.net设置默认按钮的方法
摘要:首先在代码中加入如下方法: /// <summary> /// 设置在页面回车时触发事件的控件 /// </summary> /// <param name="Ctrl">将触发事件的控件对象</param> public static void SetEnterControl(System.Web.UI.Control Ctrl) { P... 阅读全文
posted @ 2009-06-12 18:55 阿C's 阅读(470) 评论(0) 推荐(0) 编辑
.NET截取指定长度汉字超出部分以"..."代替
摘要:[代码] 阅读全文
posted @ 2009-06-09 22:44 阿C's 阅读(201) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示