摘要: <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=d 阅读全文
posted @ 2024-01-15 16:39 Hawk_Yuan 阅读(14) 评论(0) 推荐(0) 编辑
摘要: if (FormFields["COM_FORMNO"].Length > 0) { DataTable dt = new DataTable(); using (WF_SampleV5Service service = new WF_SampleV5Service(WFConn)) dt = se 阅读全文
posted @ 2022-02-27 11:41 Hawk_Yuan 阅读(258) 评论(0) 推荐(0) 编辑
摘要: protected void btnExcel_Click(object sender, EventArgs e) { int i = 0; try { i = this.Grid1.SelectedRowIndexArray[0]; } catch { Alert.Show("Select Rec 阅读全文
posted @ 2022-02-14 17:08 Hawk_Yuan 阅读(585) 评论(0) 推荐(0) 编辑
摘要: int pdfMax = 0; try { pdfMax = Convert.ToInt32(ConfigurationManager.AppSettings["PDFMax"]); } catch { pdfMax = 5; } this.openFileDialog1.Filter = "PDF 阅读全文
posted @ 2021-10-22 17:01 Hawk_Yuan 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #region 导入数据到变量dt String AsposeLicPath = String.Empty; if (System.Configuration.ConfigurationManager.AppSettings["AsposeLicPath"] == null) throw new E 阅读全文
posted @ 2021-05-04 11:09 Hawk_Yuan 阅读(762) 评论(0) 推荐(0) 编辑
摘要: (未測試)原来MVC框架内置的JsonResult代码中,在使用JavaScriptSerializer时,都是采用的默认值,没有从maxJsonLength读取值,即忽略了这个配置。 在控制器中添加两个JsonResult,然后在需要返回大数据json的action调用,即用return Larg 阅读全文
posted @ 2021-01-18 11:52 Hawk_Yuan 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Select CONVERT(varchar(50), GETDATE(), 0) 05 16 2006 10:57AMSelect CONVERT(varchar(50), GETDATE(), 1) 05/16/06Select CONVERT(varchar(50), GETDATE(), 2 阅读全文
posted @ 2019-03-15 15:25 Hawk_Yuan 阅读(366) 评论(0) 推荐(0) 编辑
摘要: EXEC sp_addlinkedserver 'LNKName', '', 'MSDASQL', NULL, NULL, 'DRIVER={SQL Server};SERVER=ServerName;UID=UserName;PWD=password;' GO exec sp_addlinkeds 阅读全文
posted @ 2019-03-15 15:20 Hawk_Yuan 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.绑定键值及读取 前端设置:DataKeyNames=“Field1,Field2”; 后台设置:GridView1.DataKeyNames=Gridview1.DataKeyNames = new string[] { "PositionID", "DepartmentID" }; 后台读取: 阅读全文
posted @ 2018-11-19 19:33 Hawk_Yuan 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 一.SOAPHEADER01.using System; 02.using System.Data; 03.using System.Configuration; 04.using System.Web; 05.using System.Web.Security; 06.using Sys... 阅读全文
posted @ 2015-02-16 07:00 Hawk_Yuan 阅读(473) 评论(0) 推荐(0) 编辑