2012飞

just do it,believe yourself. 努力和汗水成就梦想
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年2月1日

摘要: 要让用户控件的子控件具有外部访问权限可以修改子控件的Modifiers属性为public 阅读全文

posted @ 2015-02-01 17:14 2012飞 阅读(271) 评论(0) 推荐(0) 编辑

摘要: C# 防止SQL注入http://blog.csdn.net/limlimlim/article/details/8597508摘要:在做Sql注入防止的时候找了很多代码,但都不十分满意,有的需要一个页面一个页面去调用,有的则执行错误.于是在一个解决方案上面修改了一下,基本实现了全站防止SQL注入的... 阅读全文

posted @ 2015-02-01 17:13 2012飞 阅读(303) 评论(0) 推荐(0) 编辑

摘要: C# 防止SQL注入攻击 http://blog.csdn.net/limlimlim/article/details/8629582l登录判断:select * from T_Users where UserName=... and Password=...,将参数拼到SQL语句中。l构造恶意的P... 阅读全文

posted @ 2015-02-01 16:26 2012飞 阅读(732) 评论(0) 推荐(0) 编辑

摘要: http://blog.csdn.net/sikaiyuan2008/article/details/7848926sql server数据库存储sqlSQL SERVER拼接字符串(字符串中有变量) 总是忘记规律,转载过来以帮助记忆。一、拼接字符串(整个字符串不分割)步骤:首先在字符串的前后加单引... 阅读全文

posted @ 2015-02-01 16:13 2012飞 阅读(3632) 评论(0) 推荐(0) 编辑

摘要: 调用时出现错误public static string connString = ConfigurationManager.ConnectionStrings["SqlConnString"].ConnectionString.ToString();SqlConnection cnn = new S... 阅读全文

posted @ 2015-02-01 11:53 2012飞 阅读(103) 评论(0) 推荐(0) 编辑