上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
摘要: 代码: private string GetImageExtension(MemoryStream ms) { try { Image image = Image.FromStream(ms); if (image.RawFormat.Guid == ImageFormat.Bmp.Guid) re 阅读全文
posted @ 2017-06-16 15:23 0611163 阅读(568) 评论(0) 推荐(0)
摘要: 代码: 阅读全文
posted @ 2017-03-23 14:50 0611163 阅读(638) 评论(0) 推荐(0)
摘要: 工具类代码: using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using Syste 阅读全文
posted @ 2017-03-10 11:46 0611163 阅读(3133) 评论(0) 推荐(1)
摘要: 在网站根目录下添加favicon.ico文件,并在网页添加如下代码: 阅读全文
posted @ 2016-12-28 12:51 0611163 阅读(352) 评论(0) 推荐(0)
摘要: 代码: using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System. 阅读全文
posted @ 2016-12-16 11:51 0611163 阅读(1409) 评论(0) 推荐(3)
摘要: 代码: private void button5_Click(object sender, EventArgs e) { int val = 5; Task.Factory.StartNew(() => { MessageBox.Show("测试StartNew:无参数"); }); Task.Fa 阅读全文
posted @ 2016-11-08 09:31 0611163 阅读(5622) 评论(1) 推荐(0)
摘要: 1. JS方法一定要有注释 2. JS功能要有注释 如上图所示,有注释,几个月后维护,只需1秒就能看懂它的功能,如果没有注释,你需要在代码中查询RESPONSIBLEDEPT或者查找数据库设计文档才能知道这段代码的含义 3. 类一定要有注释 4. C#代码要用#region包起来,#region之间 阅读全文
posted @ 2016-11-02 17:09 0611163 阅读(499) 评论(0) 推荐(2)
摘要: 前台HTML: <div class="search-container"> <table class="search-container-table" cellpadding="0" cellspacing="0"> <tr> <td>统计年份:</td> <td> <input type="te 阅读全文
posted @ 2016-10-28 11:31 0611163 阅读(604) 评论(0) 推荐(0)
摘要: 代码: /// <summary> /// 添加普通偏转角度文字水印 /// </summary> public static void SetWatermark(string filePath, string text) { PdfReader pdfReader = null; PdfStamp 阅读全文
posted @ 2016-10-10 10:41 0611163 阅读(2189) 评论(0) 推荐(0)
摘要: Web.config配置: 在<system.web>节下: 登录代码: /// <summary> /// 登录 /// </summary> public static bool Login(string userName, string userPwd) { MySqlHelper dbHel 阅读全文
posted @ 2016-09-13 13:36 0611163 阅读(1108) 评论(0) 推荐(1)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页