[转]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) 编辑
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) 编辑
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) 编辑