- 博客(15)
- 收藏
- 关注
原创 NHibernate案例
创建Winform项目NHibernate,NuGet引入NHibernate包。主键一定要用Id标签写,固定写法。属性一定要加Virtual。
2025-07-09 18:24:33
419
原创 img标签的src使用base64显示图片
在vs中新建一个web项目,添加一个aspx页面 然后就开始后台编码了 namespace WebApplication1 { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { st...
2019-12-16 22:20:40
10084
原创 js格式化字符串
function formatString() { if (arguments.length === 0) { return null; } var str = arguments[0]; for (var i = 1; i < arguments.length; i++) { var placeHolder = '{' + (i - 1) + '}'; var fix ...
2019-12-13 10:06:37
7378
原创 生成图片验证码
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.IO; public partial class VidateCode { //得到指定位数的验证码 private static string GenerateCheckCodes(int iCount = 4) ...
2019-10-09 16:45:24
10094
原创 MD5加密帮助类
public class MD5Helper { /// <summary> /// MD5加密 /// </summary> /// <param name="input">需要加密的字符串</param> /// <returns></returns> public stat...
2019-10-09 15:31:48
10305
原创 EPPlus读写Excel
Excel读写类ImportExportHelper using OfficeOpenXml; using System.Data; using System.IO; namespace Test { public class ImportExportHelper { /// <summary> /// <summary> ...
2019-09-28 18:14:06
11774
原创 NPOI读写Excel
Excel读写类ImportExportHelper using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; using System; using System.Collections; using System.Data; using System.IO; namespace Test { ...
2019-09-28 18:11:05
10163
原创 DataTable转IEnumerable
using System.Collections.Generic; namespace System.Data { public static class DataTableExtend { /// <summary> /// DataTable转换成IEnumerable /// </summary> ...
2019-09-28 18:06:59
11078
原创 IEnumerable转DataTable及去重
using System; using System.Data; using System.Reflection; namespace System.Collections.Generic { public static class IEnumerableExtend { /// <summary> /// IEnumerable转换成...
2019-09-28 18:05:06
10847
原创 单选按钮换成图片
首先准备两张图片 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="keywords" content=""> ...
2019-09-28 17:30:25
11081
原创 将input[type="file"]显示成a标签
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> .file_upload_box { ...
2019-09-28 17:29:04
10618
原创 js复制文本到剪切板
function copyText(text) { var textarea = document.createElement("textarea"); //创建textarea对象 var currentFocus = document.activeElement; //当前获得焦点的元素 document.body.appendChild(textarea); //添加元素 texta...
2019-09-28 17:22:03
10329
原创 js获取url参数
function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]);...
2019-09-28 17:20:03
10088
原创 XML字符串转DataSet
using System.Data; using System.IO; using System.Xml; namespace System { public static class StringExtend { public static DataSet ToDataSet(this string xmlString) { ...
2019-09-28 16:10:20
10247
原创 VS2013添加反编译工具-ILDasm
首先找到ildasm.exe 路径为:C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools 然后在vs中点击工具,选择外部工具 标题是自己起的标识名称 命令是ildasm.exe的绝对路径 此时再点击工具就看到有ILDasm工具了 点击进去就会看到当前项目的IL代码了 ILDasm图标 ...
2018-12-11 21:47:10
12855
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅