摘要:
一、首先下载log4net.dll http://pan.baidu.com/s/1gdigrwJ二、添加log4net引用三、代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using log4net;using System.Reflection;namespace WebApplication1{ public partial class _Default : ...
阅读全文
posted @ 2013-12-24 11:01
王洪洪
阅读(953)
推荐(0)
摘要:
/// designed by Alex /// 解决内存溢出问题,不可使用迭代器和foreach /// 循环遍历List, 别生成xml,一边释放 /// 反向遍历,相当于出栈,避免索引顺序乱的问题 /// 反转List. if (zrate.RateList != null && zrate.RateList.Count != 0) { log.Debug("反转list...
阅读全文
posted @ 2013-12-24 10:50
王洪洪
阅读(369)
推荐(0)
摘要:
/// designed by Alex /// 解决内存溢出问题,不可使用迭代器和foreach /// 循环遍历List, 别生成xml,一边释放 /// 反向遍历,相当于出栈,避免索引顺序乱的问题 ...
阅读全文
posted @ 2013-12-24 10:49
王洪洪
阅读(271)
推荐(0)
摘要:
前台代码: 将Customer类转成string: 读txt文件并转成Customer类: 后台代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing...
阅读全文
posted @ 2013-12-13 13:09
王洪洪
阅读(369)
推荐(0)
摘要:
前台代码: 将Customer类转成string : 读txt文件并转成Customer类: ...
阅读全文
posted @ 2013-12-13 13:06
王洪洪
阅读(206)
推荐(0)
摘要:
前台代码: 后台代码:string rOrderId = e.CommandArgument.ToString(); DataSet dsDetail= bf.GetDetailByRorderId(rOrderId); string html = "冻结时间失败信息"; if (dsDetail != null && dsDetail.Tables != null && dsDetail.Tables[0].Rows.Count>0) { ...
阅读全文
posted @ 2013-12-11 16:49
王洪洪
阅读(502)
推荐(0)
摘要:
后台代码: string rOrderId = e.CommandArgument.ToString(); DataSet dsDetail= bf.GetDetailByRorderId(rOrderId); ...
阅读全文
posted @ 2013-12-11 16:48
王洪洪
阅读(165)
推荐(0)
摘要:
表结构: 前台代码: 后台代码: public partial class WebForm1 : System.Web.UI.Page { protected voi...
阅读全文
posted @ 2013-12-11 12:01
王洪洪
阅读(403)
推荐(0)
摘要:
表结构:前台代码: 后台代码: public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string sql = "SELECT * FROM Menus ORDER BY Sort"; ...
阅读全文
posted @ 2013-12-11 10:15
王洪洪
阅读(3546)
推荐(0)
摘要:
protected void btnExport_Click(object sender, EventArgs e) { DataTable dt = (DataTable)ViewState["TableAll"]; DataTable dtSerch = (DataTable)ViewState["SerchTable"]; if (dtSerch != null) { Repeater1.DataSource = dtSerch; ...
阅读全文
posted @ 2013-12-06 17:48
王洪洪
阅读(202)
推荐(0)