2010年6月3日

GridView Edit 和Delete

摘要: 前台: <asp:CommandField ButtonType="Image" HeaderText="Edit" EditImageUrl="~/client_support/images/edit.GIF" UpdateImageUrl ="~/client_support/images/save.gif" CancelImageUrl="~/client_support/images... 阅读全文

posted @ 2010-06-03 13:59 AndyCai 阅读(707) 评论(0) 推荐(0) 编辑

GridView RowDataBound

摘要: if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate) //正常查询显示 { Label lblSite = (Label)e.Row.FindCont... 阅读全文

posted @ 2010-06-03 13:55 AndyCai 阅读(233) 评论(0) 推荐(0) 编辑

通过流打开一个Excel文件

摘要: string templateExcel = "xxx.xls"; string path = Server.MapPath(@"Template\") + templateExcel; //路径 System.IO.FileInfo file = new System.IO.FileInfo(path); Response.AddHeader("Content-Disposition", "at... 阅读全文

posted @ 2010-06-03 13:43 AndyCai 阅读(212) 评论(0) 推荐(0) 编辑

导航