摘要:
sqlcmd.Parameters.Add(new SqlParameter("@t12",SqlDbType.DateTime));if (tb12.Text.Length>0){sqlcmd.Parameters["@t12"].Value=tb12.Text}else{sqlcmd.Parameters["@t12"].Value = System.DBNull.Value;} 阅读全文
摘要:
/**//// /// 将gridview导出到Excel /// #region protected void ToExcel() { //屏蔽掉不需要导出的列 gvList.Columns[0].Visible = false; gvList.Columns[2].Visible = false; gv... 阅读全文
摘要:
#region 页面事件处理程序 --- gridView事件 //数据列绑定时 protected void gvList_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { ... 阅读全文
摘要:
Boolean fileOK = false; String path = Server.MapPath("~/TspSystem/DemandManagerModule/"); if (FileUpload1.HasFile) { String fileExtension = Syste... 阅读全文