03 2013 档案

摘要:sofish{ 2 padding:10px; 3 padding:9px\9; /* all ie */ 4 padding:8px\0; /* ie8-9 */ 5 *padding:5px; /* ie6-7 */ 6 +padding:7px; /* ie7 */ 7 _padding:6px; /* ie6 */ 8 } 浏览器专属 CSS Hack:区分 Firefox / Opera / Safari / Internet Explorerhttp://leeiio.me/c... 阅读全文
posted @ 2013-03-08 10:35 一个土豆一棵青菜 阅读(882) 评论(0) 推荐(0) 编辑
摘要:带有防注入的呦var list = db.ExecuteQuery<registered >("SELECT city,MIN(state) AS state,COUNT(1) AS count FROM dbo.pt_registrations WHERE bankID=88 AND businessName='Webster Bank RAF' AND timeRegistered>='20130201' AND timeRegistered<'20130301' GROUP BY city order by 阅读全文
posted @ 2013-03-08 10:31 一个土豆一棵青菜 阅读(308) 评论(0) 推荐(0) 编辑
摘要:前台:设置gridview的ShowFooter="True" ,否则默认表头为隐藏的!后台代码RowDataBound事件 private double sum = 0; protected void GetAccountsOpened10_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex >= 0) { sum += Convert.ToDouble(e.Row.Cells[1].Text); } el... 阅读全文
posted @ 2013-03-08 10:22 一个土豆一棵青菜 阅读(319) 评论(0) 推荐(0) 编辑
摘要:区分大小写 public class RowComparer : IEqualityComparer<pt_registration > { CaseInsensitiveComparer myComparer = new CaseInsensitiveComparer (); public bool Equals(pt_registration t1, pt_registration t2) { if (myComparer.Compare(t1.emailAddress, t2.emailAddress) == 0 &... 阅读全文
posted @ 2013-03-08 10:20 一个土豆一棵青菜 阅读(3221) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示