摘要:
style="cursor:pointer" 阅读全文
摘要:
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... 阅读全文
摘要:
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 阅读全文
摘要:
一句话搞定:删除 阅读全文
摘要:
前台:只要架上runat="server"就搞定了,后台:this.test.Value = "测试"; 阅读全文
摘要:
protected void Btn_Import_Click(object sender, EventArgs e) { bool Result_Import = false; bool Result = false; Guid RanageID ... 阅读全文
摘要:
方法:[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_... 阅读全文
摘要:
select top 100 PERCENT * 阅读全文
摘要:
这里我用的是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 //升序,取相邻第一个(默 阅读全文
摘要:
//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 阅读全文