上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页
摘要: /// designed by Alex /// 解决内存溢出问题,不可使用迭代器和foreach /// 循环遍历List, 别生成xml,一边释放 /// 反向遍历,相当于出栈,避免索引顺序乱的问题 /// 反转List. if (zrate.RateList != null && zrate.RateList.Count != 0) { log.Debug("反转list... 阅读全文
posted @ 2013-12-24 10:50 王洪洪 阅读(359) 评论(0) 推荐(0) 编辑
摘要: /// designed by Alex /// 解决内存溢出问题,不可使用迭代器和foreach /// 循环遍历List, 别生成xml,一边释放 /// 反向遍历,相当于出栈,避免索引顺序乱的问题 ... 阅读全文
posted @ 2013-12-24 10:49 王洪洪 阅读(259) 评论(0) 推荐(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 王洪洪 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 前台代码: 将Customer类转成string : 读txt文件并转成Customer类: ... 阅读全文
posted @ 2013-12-13 13:06 王洪洪 阅读(195) 评论(0) 推荐(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 王洪洪 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 后台代码: string rOrderId = e.CommandArgument.ToString(); DataSet dsDetail= bf.GetDetailByRorderId(rOrderId); ... 阅读全文
posted @ 2013-12-11 16:48 王洪洪 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 表结构: 前台代码: 后台代码: public partial class WebForm1 : System.Web.UI.Page { protected voi... 阅读全文
posted @ 2013-12-11 12:01 王洪洪 阅读(390) 评论(0) 推荐(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 王洪洪 阅读(3516) 评论(1) 推荐(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 王洪洪 阅读(197) 评论(0) 推荐(0) 编辑
摘要: CabinEntity为你定义的实体 CabinEntity existCabin = listCabins.Find(delegate(CabinEntity cabinE) { return cabinE.AirCompany == modelPrice.AirCompany && cabinE.Cabin == modelPrice.Cabin && cabinE.ValidBeginTime <= modelPrice.TravelBeginTime && modelPrice.TravelBeginTime <= cabin 阅读全文
posted @ 2013-12-06 13:14 王洪洪 阅读(858) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页