博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年3月19日

摘要: 前台 要设置ShowFooter="True" ,否则默认表头为隐藏的!后台 程序代码private double sum = 0;//取指定列的数据和protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e){if (e.Row.RowIndex = 0){sum += Convert.ToDouble(e.Row.Cells[6].Text);}else if (e.Row.RowType == DataControlRowType.Footer){e.Row.Cells[5].Text = " 阅读全文

posted @ 2010-03-19 20:06 冷咖啡(子锡) 阅读(152) 评论(0) 推荐(0) 编辑

摘要: 程序代码using ...System.Runtime.InteropServices ; public unsafe class Dog { public uint DogBytes, DogAddr;//设置加密狗字节长度和起始地址 public byte[] DogData;//设置数据的长度 public uint Retcode; [DllImport("Win32dll.dll", CharSet = CharSet.Ansi)] public static unsafe extern uint DogRead(uint idogBytes, uint idogAddr, byte 阅读全文

posted @ 2010-03-19 19:42 冷咖啡(子锡) 阅读(2533) 评论(0) 推荐(0) 编辑