随笔分类 -  阿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 阅读(1233) 评论(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 阅读(622) 评论(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 阅读(476) 评论(0) 推荐(0)
.NET截取指定长度汉字超出部分以"..."代替
摘要:[代码] 阅读全文
posted @ 2009-06-09 22:44 阿C's 阅读(206) 评论(1) 推荐(0)