随笔分类 -  CSharp code

C#代码学习
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Drawing; using System.IO; using 阅读全文
posted @ 2014-05-08 01:35 ®Geovin Du Dream Park™ 阅读(863) 评论(0) 推荐(0)
摘要:win10: C:\Program Files\Common Files\Microsoft Shared\Ink\Microsoft.Ink.dll /* 下載: //Microsoft Windows XP Tablet PC Edition 2005 Recognizer Pack http: 阅读全文
posted @ 2014-05-01 00:32 ®Geovin Du Dream Park™ 阅读(7986) 评论(6) 推荐(0)
摘要:/// /// 图像转成二进制数组 /// /// /// public byte[] imageToByteArray(System.Drawing.Image imageIn) { ... 阅读全文
posted @ 2014-04-28 15:28 ®Geovin Du Dream Park™ 阅读(1448) 评论(0) 推荐(1)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-04-27 21:32 ®Geovin Du Dream Park™ 阅读(1353) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-04-27 17:24 ®Geovin Du Dream Park™ 阅读(891) 评论(0) 推荐(0)
摘要:http://code.msdn.microsoft.com/office/Export-GridView-to-07c9f836 https://exporter.codeplex.com/ http://closedxml.codeplex.com/ http://epplus.codeplex 阅读全文
posted @ 2014-04-16 13:47 ®Geovin Du Dream Park™ 阅读(669) 评论(0) 推荐(0)
摘要://Csharp:WebClient and WebRequest use http download file //20140318 塗聚文收錄 string filePath = "20140302.pdf"; string fileName = "http://www.dusystem.com/3.pdf"; //1出现找不到文件 filePath //string headerValue = (Request.UserAgent.ToLower().Contains("msie... 阅读全文
posted @ 2014-03-18 23:09 ®Geovin Du Dream Park™ 阅读(707) 评论(0) 推荐(0)
摘要:1 /// /// DataTable分页 /// /// DataTable /// 页索引,注意:从1开始 /// 每页大小 /// public static DataTable GetPagedTable(DataTable dt, int currentPageIndex, int pageSize) { //1 //判断当前索引 if (currentPageIn... 阅读全文
posted @ 2014-03-10 18:16 ®Geovin Du Dream Park™ 阅读(2840) 评论(0) 推荐(0)
摘要:/// /// 塗聚文 /// 20140225 /// public partial class DatatablePage : System.Web.UI.Page { /// /// 测试 分页数据 /// DataTable pageDt; /// /// /// public void geovinduDt() { pageDt = new DataTable(); pag... 阅读全文
posted @ 2014-02-27 00:28 ®Geovin Du Dream Park™ 阅读(851) 评论(0) 推荐(0)
摘要:http://www.jinweijie.com/http://www.astreeview.com/astreeviewdemo/astreeviewdemo1.aspx選擇節點: /// /// initial controls, bind you events etc. here /// private void InitializeComponent() { //獲取值 添加右鍵菜單進行編輯 //注:塗聚文 //this.astvMyTree.ContextMenu.MenuItems.Add(new ASContextMen... 阅读全文
posted @ 2014-02-12 17:52 ®Geovin Du Dream Park™ 阅读(802) 评论(0) 推荐(0)
摘要:ftb.imagegallery.aspx 改一下代码: 编辑器页的代码:aspnet_client/FreeTextBox 是编辑器的代码文件夹;保存图片的文件夹:/saveimages/ 阅读全文
posted @ 2014-01-13 15:58 ®Geovin Du Dream Park™ 阅读(713) 评论(0) 推荐(0)
摘要://彈出提示 ClientScriptManager cs = Page.ClientScript; StringBuilder sb = new StringBuilder(); sb.Append(""); //1.可以用 //Response.Write(sb.ToString()); //2.可以用 //ClientSc... 阅读全文
posted @ 2014-01-13 15:28 ®Geovin Du Dream Park™ 阅读(566) 评论(0) 推荐(0)
摘要:引用:using System.Web.Hosting; string filePathcsv = ""; string file = ""; string strFile = "LukfookGeovindu"; strFile = strFile + DateTime.Now.ToString("yyyyMMddhhmmss"); strFile = strFile + ".csv"; //file = strFile; teresaliu@lukfook.... 阅读全文
posted @ 2013-12-03 17:34 ®Geovin Du Dream Park™ 阅读(399) 评论(0) 推荐(0)
摘要:/// ///塗聚文 存儲過程輸出參數,和返回值 /// 20131030 /// Geovin Du /// /// /// /// /// /// /// public DataTable SelectbirthdayVipdlyTotalPage(Repeater rept, AspNetPager apage, string vipno, DateTime date, out string alltotal) ... 阅读全文
posted @ 2013-10-30 16:55 ®Geovin Du Dream Park™ 阅读(2899) 评论(0) 推荐(0)
摘要:namespace GeovinDu.PdfViewer{ [DefaultProperty("FilePath")] [ToolboxData("")] public class ShowPdf : WebControl { #region "Declarations" //Geovin Du 塗聚文 20131010 private string mFilePath;#endregion #region "Properties" [Category("Source File")] ... 阅读全文
posted @ 2013-10-10 17:20 ®Geovin Du Dream Park™ 阅读(594) 评论(2) 推荐(0)
摘要:1 public class StringControl 2 { 3 4 /// <summary> 5 /// 客户端浏览器 6 /// http://en.wikipedia.org/wiki/Web_browser 7 /// http://www.w3schools.com/browsers 阅读全文
posted @ 2013-08-07 15:03 ®Geovin Du Dream Park™ 阅读(3827) 评论(0) 推荐(1)
摘要:/// /// 檢測手機客戶端 HttpCapabilitiesBase.IsMobileDevice /// .NET 4.5 /// 塗聚文注 /// public static class HttpRequestBaseExtensions { #region Private Fields // These regular expressions retrieved from http://detectmobilebrowser.com/ "Open source mobile phone detection"... 阅读全文
posted @ 2013-07-17 12:23 ®Geovin Du Dream Park™ 阅读(1306) 评论(0) 推荐(0)
摘要:/// /// CheckBoxList數據源 /// 塗聚文 /// 20130705 /// /// private void setCheckBoxList() { DataTable dt = new DataTable(); CheckBoxList1.Items.Clear(); dt = geovindu_branchBLL.SelectGeovindu_branchNameDt(); CheckBox... 阅读全文
posted @ 2013-07-05 11:33 ®Geovin Du Dream Park™ 阅读(563) 评论(0) 推荐(0)
摘要:1 /// 2 /// 3 /// 4 public partial class Form2 : Form 5 { 6 7 private mshtml.IHTMLDocument2 hc; 8 private mshtml.HTMLDocument hc1; 9 //subdir in ApplicationData Folder, change whatever you think 10 private const string M_WORKPATH = "som... 阅读全文
posted @ 2013-06-28 16:28 ®Geovin Du Dream Park™ 阅读(1393) 评论(0) 推荐(0)
摘要:1 /// <summary> 2 /// �� 塘㙍镇 3 ///涂聚文 20130623 4 ///http://zh.wiktionary.org/wiki/Wiktionary:%E9%83%A8%E9%A6%96%E7%B4%A2%E5%BC%95 5 /// </summary> 6 / 阅读全文
posted @ 2013-06-24 17:13 ®Geovin Du Dream Park™ 阅读(1927) 评论(2) 推荐(0)