- 博客(7)
- 收藏
- 关注
原创 .Net DataTable导出到Excel
/// <summary> /// 打印方法 /// </summary> /// <param name="dt">需要打印的数据表</param> /// <param name="message">返回的具体文字信息</param> /// <returns>返回打印...
2020-02-26 14:23:34
719
原创 MD5加密
using System.Security.Cryptography;加密字符串 /// <summary> /// MD5字符串加密 /// </summary> /// <param name="txt"></param> /// <returns>加密后字符...
2020-01-03 14:56:25
151
原创 SQL Server 分页
查询的当前 数据库下所有用户表 select*fromsys.tables1. top not innumberSize 数据条数/页numberPsge 页数select topnumberSize * from 表 where 主键 not in (select top numberSize*(numberPage-1) 主键 from biao order b...
2019-12-03 14:45:51
99
原创 判断表中 指定列 数据是否存在
1 Sqlselect top 1 1 from 表 where id = '123' ==>tableif (table == null){“不存在”}if (table.rows.count > 0 )“存在”else“不存在”2 for///table 需要检索的数据表///ColName 列名/// 判断是否存在的值...
2019-12-02 17:45:06
551
原创 循环 DataTable 的几种方式
1. forfor(int i = 0 ;i <datatable.rows.Count;i++){ string OneID=Convert.ToString(datatable.rows[i].['ID']).Trim();//每行 列名为 ID 的值}2. forfor(int i = 0 ;i <datatable.rows.Count;i++){...
2019-12-02 17:28:41
3703
原创 C# WinForm 关于DataGridView
C# WinForm 关于DataGridView由于在项目中需要用到DataGridView 显示数据,遇到可记录的关于DataGridView的属性和时间DataGridView 中 点击CheckBox 所在单元格即选中CheckBox1、 先设置CheckBox 列 为ReadOnly2、 在 DataGridView的CellClick 事件中,写入一下代码private ...
2019-11-30 17:12:03
749
原创 使用一般处理程序,扫描一维二维码
using System; using System.Collections.Generic; using System.Drawing; using System.Web; using ThoughtWorks.QRCode.Codec; using ThoughtWorks.QRCode.Codec.Data; using ZXing; using ZXing.Common;...
2019-07-16 10:44:04
245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人