摘要: asp.net常用的正则表达式 常用表达式:"^\d+$"  //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$"  //正整数 "^((-\d+)|(0+))$"  //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$"  //负整数 "^-?\d+$"    //整数 "^\d+(\.\d+)?$"  //非负浮点数(正浮点数 + 0) "^(([0... 阅读全文
posted @ 2010-06-30 10:20 秦小明 阅读(111) 评论(0) 推荐(0)
摘要: wol实现透过internet远程开机(可通过网页开机,能上网就能开机启动电脑,wolcmd.exe远程开机) 作者:依山居什么叫WOL,WAKE UP LAN?网络唤醒?什么是魔法封包?什么是动态域名解析?端口映射?有任何不懂的请自行百度,我相信百度会帮你去GOOGLE。一、目的、效果、网络唤醒的应用 1、透过网络远程开机,可以在需要远程控制或者需要传输文件的时候再开机,不需要电脑一直保持开机状... 阅读全文
posted @ 2010-06-12 19:25 秦小明 阅读(919) 评论(0) 推荐(0)
摘要: DateTime dt = DateTime.Now(); Label1.Text = dt.ToString();//2005-11-5 13:21:25 Label2.Text = dt.ToFileTime().ToString();//127756416859912816 Label3.Text = dt.ToFileTimeUtc().ToString();//1277567048599... 阅读全文
posted @ 2010-06-09 17:59 秦小明 阅读(2485) 评论(0) 推荐(0)
摘要: <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> <input name=Button .Click=document.all.WebBrowser.ExecWB(1,1) type=button value=打开>... 阅读全文
posted @ 2010-06-09 17:48 秦小明 阅读(718) 评论(0) 推荐(0)
摘要: System.DateTime.Parse(Convert.ToString(System.DateTime.Now)).ToString( "yyyy-MM-dd "); 把时间转换为yyyy-MM-dd格式 阅读全文
posted @ 2010-05-26 17:43 秦小明 阅读(170) 评论(0) 推荐(0)
摘要: public void TiaoJiaYuanYin() { // 默认是"其他" ,将序排列 DataRow[] rows = StaticVariable.XiTongDaiMa.Tables[0].Select("字段名='调价原因'","字段名 desc"); foreach (DataRow row in rows) { ListItem listItems = new ListItem... 阅读全文
posted @ 2010-05-26 17:10 秦小明 阅读(872) 评论(0) 推荐(0)
摘要: Focus on the framework, interest in custom controlOracle中TO_DATE格式 TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 显示值:2007 Mon... 阅读全文
posted @ 2010-05-21 09:22 秦小明 阅读(2460) 评论(0) 推荐(0)
摘要: 利用迭代绑定:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- myconn.Open();stringsql="select*fromcustomer";SqlCommandcmd=newSqlCommand(sql,myconn);SqlDat... 阅读全文
posted @ 2010-01-24 11:58 秦小明 阅读(235) 评论(0) 推荐(0)
摘要: //获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名)//获取新的 Process 组件并将其与当前活动的进程关联的主模块的完整路径,包含文件名(进程名)。string str = System.Diagnostic... 阅读全文
posted @ 2010-01-13 01:50 秦小明 阅读(164) 评论(0) 推荐(0)
摘要: eg133 阅读全文
posted @ 2010-01-12 13:20 秦小明 阅读(224) 评论(0) 推荐(0)