• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

Rusteel Wang's Blog

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

上一页 1 2

2010年10月15日

获取datetime的millisecond

摘要: 以前通过ExecuteQuery得到DataTable后,全是把field直接用ToString方法转出来,datetime也如此,却一直不知道这样做会丢掉datetime field的millisecond部分。这次做项目因为需要millisecond,才意识到不可以直接ToString的。正确的做法应该是:遍历DataTable时,先把还是Object类型的datetime还原成DateTim... 阅读全文

posted @ 2010-10-15 11:48 Rusteel 阅读(1050) 评论(0) 推荐(0)

2010年9月22日

查询重复数据的SQL语句

摘要: select column1, column2from TBwherecolumn1in(selectcolumn1, column2from TBgroup bycolumn1, column2having(count(*)>1)) 阅读全文

posted @ 2010-09-22 11:02 Rusteel 阅读(366) 评论(0) 推荐(0)

2010年7月23日

页面抛出的"Unable to validate data"错误

摘要: 维护旧系统,日志报告一个Unable to validate data错误:------FatalError: [2010-07-23 11:36:01] Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 s... 阅读全文

posted @ 2010-07-23 14:54 Rusteel 阅读(4599) 评论(0) 推荐(0)

2010年2月1日

[转]掌握Ajax系列

摘要: 虽然目前已经有很多的书籍文章讲解Ajax,而且很多人用UpdatePanel都用得比较爽,但我还是觉得《掌握Ajax系列》讲解透彻,不罗嗦,仍然是值得新手一读的:http://www.ibm.com/developerworks/cn/web/wa-ajaxintro/ 阅读全文

posted @ 2010-02-01 14:21 Rusteel 阅读(163) 评论(0) 推荐(0)

2010年1月25日

个人使用的log4net配置

摘要: 最近在项目中使用log4net,配置起来有点麻烦,在参考了网上的资料后,按自己喜好做了一份配置文件,保存在此,以备复制粘贴。 (- -|)在Config文件根下增加以下配置:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<configSec... 阅读全文

posted @ 2010-01-25 10:39 Rusteel 阅读(302) 评论(0) 推荐(0)

2009年8月24日

当无法使用Response.Redirect来进行重定向时的解决方案

摘要: 同事维护一个旧系统,需要重定向,但不成功,我发现是在重定向之前使用了Response.Flush方法导致Response.Redirect失效。之后还是同事自己找到的方法:用javascript来跳转页面:window.location.href。用Response.write输出即可。 阅读全文

posted @ 2009-08-24 11:20 Rusteel 阅读(688) 评论(0) 推荐(0)

2009年6月27日

[转]跨站脚本XSS

摘要: 褚诚云写的一篇关于XSS的文章。 阅读全文

posted @ 2009-06-27 18:01 Rusteel 阅读(240) 评论(0) 推荐(0)

2009年6月24日

[转]给javascript初学者的24个最佳实践

摘要: Jeffrey Way给javascript初学者的24条最佳实践 阅读全文

posted @ 2009-06-24 10:41 Rusteel 阅读(208) 评论(0) 推荐(0)

2009年6月13日

[转]CSS选择器笔记

摘要: 别人做的CSS选择器笔记:http://www.ruanyifeng.com/blog/2009/03/css_selectors.html 阅读全文

posted @ 2009-06-13 22:46 Rusteel 阅读(150) 评论(0) 推荐(0)

上一页 1 2
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3