随笔分类 -  技术杂谈

也谈C#.NET防止SQL注入式攻击
摘要:#region 防止sql注入式攻击(可用于UI层控制) /// /// 判断字符串中是否有SQL攻击代码,by fangbo.yu 2008.07.18 /// /// 传入用户提交数据 /// true-安全;false-有注入攻击现有; public bool ProcessSqlStr(string inputString) { string SqlStr = @"and|or|exe... 阅读全文

posted @ 2009-09-02 14:51 欣路历程 阅读(3397) 评论(0) 推荐(0)

JSP教程视频地址
摘要:http://v.youku.com/v_playlist/f2321714o1p0.html 阅读全文

posted @ 2009-02-05 00:19 欣路历程 阅读(128) 评论(0) 推荐(0)

ORACLE中用rownum分页并排序的SQL语句
摘要:ORACLE中用rownum分页并排序的SQL语句 以前分页习惯用这样的SQL语句: select * from (select t.*,rownum row_num from mytable t order by t.id) b where b.row_num between 1 and 10 结果发现由于该语句会先生成rownum 后执行order by 子句, 因而排序结果根本不对, 后来在... 阅读全文

posted @ 2009-01-06 12:40 欣路历程 阅读(936) 评论(2) 推荐(0)

总结.NET编程中经常用到的27个函数
摘要:1、DateTime 数字型 以下是引用片段: System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 ... 阅读全文

posted @ 2008-12-31 12:45 欣路历程 阅读(380) 评论(0) 推荐(0)

导航