摘要: style="cursor:pointer" 阅读全文
posted @ 2013-07-19 16:55 忆森灵 阅读(338) 评论(0) 推荐(0) 编辑
摘要: public void draw(DataTable dt) { //取得记录数量 int count = dt.Rows.Count; //记算图表宽度 int wd = 80 + 20 * (count - 1); //设置最小宽度为800 if (wd < 600) wd = 600; //生成Bitmap对像 Bitmap img = new Bitmap(wd, 400); //生成绘图对像 Graphics g = Graphics.F... 阅读全文
posted @ 2013-07-13 11:09 忆森灵 阅读(400) 评论(0) 推荐(0) 编辑
摘要: string fileName = "123.jpg";//图片名字 string filePath = Server.MapPath("../upload/123.jpg");//图片路径 //以字符流的形式下载文件 FileStream fs = new FileStream(filePath, FileMode.Open); byte[] bytes = new byte[(int)fs.Length]; fs.Read(bytes, 0, bytes.Length); fs.Close(); Response.ContentType = &quo 阅读全文
posted @ 2013-07-11 17:27 忆森灵 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 一句话搞定:删除 阅读全文
posted @ 2013-07-10 17:43 忆森灵 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 前台:只要架上runat="server"就搞定了,后台:this.test.Value = "测试"; 阅读全文
posted @ 2013-07-10 15:54 忆森灵 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: protected void Btn_Import_Click(object sender, EventArgs e) { bool Result_Import = false; bool Result = false; Guid RanageID ... 阅读全文
posted @ 2013-07-10 11:02 忆森灵 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 方法:[STAThread]///这是必须的 public override void VerifyRenderingInServerForm(System.Web.UI.Control control) { //base.VerifyRenderingInServerForm(control); }public void OutExcel() { dsExcel = OPA_HistoryEmployee.GetChineseHistoryEmployeeList(opa_historyemployee); opa_appraiseinfo.ID=AppInfoId; opa_... 阅读全文
posted @ 2013-07-10 10:38 忆森灵 阅读(292) 评论(0) 推荐(0) 编辑
摘要: select top 100 PERCENT * 阅读全文
posted @ 2013-07-09 10:35 忆森灵 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 这里我用的是input标签跳转页面的:前台aspx页面中:';"/> //当前记录 ';"/> //当前的前一条记录 ';"/> //当前的后一条记录其中EmployeeID_0 ,EmployeeID, EmployeeID_1分别是上一条、当前、下一条记录的IDsql语句:@ID为当前EmployeeID上一条:select top 1 ID,RealName from OPA_Employee where EmployeeID@EmployeeID order by ENumber asc //升序,取相邻第一个(默 阅读全文
posted @ 2013-07-04 09:38 忆森灵 阅读(427) 评论(0) 推荐(0) 编辑
摘要: //getDate()前面的是被减数,EndTime是减数得到年数:DATEDIFF (YEAR,getDate(), EndTime ) RemainTime得到月数:DATEDIFF (MONTH,getDate(), EndTime ) RemainTime得到天数:DATEDIFF (DAY,getDate(), EndTime ) RemainTime得到小时:DATEDIFF (HOUR,getDate(), EndTime ) RemainTime得到分钟:DATEDIFF (MINUTE,getDate(), EndTime ) RemainTime得到秒数:DATEDIFF 阅读全文
posted @ 2013-07-04 09:22 忆森灵 阅读(651) 评论(0) 推荐(0) 编辑