上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 57 下一页
摘要: 可以使用Items属性private void GetData() //一下数据均为测试{toolStripComboBox1.Items.Clear(); DataTable dt = new DataTable(); using (SqlConnection conn = new SqlConn 阅读全文
posted @ 2020-01-01 07:59 清语堂 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: private void AddDTPtoToolstrip( n){DateTimePicker dtp = DateTimePicker;dtp.Width = 110;dtp.Format = DateTimePickerFormat.Custom;ToolStripControlHost h 阅读全文
posted @ 2020-01-01 07:41 清语堂 阅读(652) 评论(1) 推荐(0) 编辑
摘要: DataGridView单元格显示密码 private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if (e.ColumnIndex == 1) { if (e. 阅读全文
posted @ 2019-12-30 19:42 清语堂 阅读(328) 评论(0) 推荐(0) 编辑
摘要: SQL通过Datatable更新数据库表内容 //要注意的一点是在Select语句中要选择的列中必须包含主键的列,此外不支持多表连接查询 DataTable dt = new DataTable(); using (SqlConnection sqlConn = new SqlConnection( 阅读全文
posted @ 2019-12-23 23:01 清语堂 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: C# DataTable和DataRelation form2.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawin 阅读全文
posted @ 2019-12-23 16:20 清语堂 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: SQL中的替换函数replace()使用 https://www.cnblogs.com/martinzhang/p/3301224.html 语法REPLACE ( string_expression , string_pattern , string_replacement )参数string_ 阅读全文
posted @ 2019-12-22 09:25 清语堂 阅读(8030) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/downmoon/archive/2012/05/04/2482995.html SQL Server 2008中SQL应用系列及BI学习笔记系列--目录索引 前几天在项目中遇到一个问题,需要从SQL Server导出表到Excel,但需要带列名。晚上 阅读全文
posted @ 2019-12-22 09:11 清语堂 阅读(1696) 评论(0) 推荐(0) 编辑
摘要: RowPrePaint事件: private void dataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { if ("不存在" == this.dataGridView1.Rows[e.RowI 阅读全文
posted @ 2019-12-21 17:24 清语堂 阅读(1997) 评论(0) 推荐(0) 编辑
摘要: IIS 无法读取配置节"system.web.extensions",因为它缺少节声明 先安装ASP.NET 4.0 然后: 今天在本地安装iis,搭建网站,应用程序的时候报错下面的错误: 服务器错误Internet Information Services 7.5错误摘要HTTP 错误 500.1 阅读全文
posted @ 2019-12-20 15:51 清语堂 阅读(1781) 评论(0) 推荐(0) 编辑
摘要: 错误信息影响: HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容。返回的错误表明IIS缺少针对无后缀的MVC请求的映射,ASP.NET处理程序无法接收到请求。要解决这个问题,首先确保ASP.NET MVC3已安装好,然后检查站点的处理程序映射,看是否存在 阅读全文
posted @ 2019-12-20 15:49 清语堂 阅读(659) 评论(0) 推荐(0) 编辑
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 57 下一页