摘要: SELECT语句并没有对数据库进行修改,所以没有影响任何行 应该将ExecuteNonQuery()改为ExecuteScale()int result = Convert.ToInt32(db.ExecuteScalar(cmd));return result == 1;以前一直用的datase装数据然后判断ds的行数==1。记录一下,已备后来人上面的代码有问题,经过查证 ExecuteScalar的返回值是返回的结果集中第一行的第一列。忽略额外的列或行所以如果使用ExecuteScalar的话 sql语句就要稍微改变一下例如:public bool IsBeOverdue(Guid Com 阅读全文
posted @ 2011-11-26 14:30 深海大虾 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: How to keep footers at the bottom of the pageWhen an HTML page contains a small amount of content, the footer can sometimes sit halfway up the page leaving a blank space underneath. This can look bad, particularly on a large screen. Web designers are often asked to push footers down to the bottom of 阅读全文
posted @ 2011-11-26 00:32 深海大虾 阅读(2337) 评论(0) 推荐(1) 编辑