博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2006年11月8日

摘要: DataList 使用的方法1。这个是MSDN上面的,没有取库中的数据绑定,而是自己申明了一个 DataTable 进行绑定的前台代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 2 3 4 5 6 7 DataList 测试 8 9... 阅读全文

posted @ 2006-11-08 16:32 孤峰皓月 阅读(899) 评论(0) 推荐(0) 编辑

摘要: 1.使用 Char.IsNumber(),但是这个一般只能判断一个字符,用For 循环也可实现。private bool isNumber(str){foreach(string s in str)//此处的string是否换居char要妥当一点{ if(!Char.IsNumber(s,0)) return false;}return true;} 2.使用try{} catch{}3... 阅读全文

posted @ 2006-11-08 16:13 孤峰皓月 阅读(1035) 评论(0) 推荐(0) 编辑