.NET
文章平均质量分 77
geovi
£捡垃圾,就是我的一生渴求. £并且喜欢这句"书中自有黄金屋,书中自有颜如玉,书中自有千钟黍,书中车马多簇簇"的感慨."读书长见识,行路广阅历",是一个"悟"字. $自然是我最想追求的"偶像". ¥读者是,读之者,者之读.一沙一世界! ¥to be is to do
展开
-
Csharp: 請假輸入兩個日期:(只考慮最多相差一個月)对于不同月份的数据考虑月份数据分界
/// /// 請假輸入兩個日期:(只考慮最多相差一個月)对于不同月份的数据考虑月份数据分界 /// /// /// private void button1_Click(object sender, EventArgs e) { DateTime en原创 2013-05-24 12:52:57 · 1462 阅读 · 0 评论 -
ASTreeView Demo:Add, Edit & Delete nodes
//選擇節點 OnNodeSelectedScript="nodeSelectHandler(elem);" function nodeSelectHandler(elem){ var val = "selected node:" + elem.parentNode.getAttribute("treeNodeValue"); var vals=elem.parentNode转载 2014-02-12 18:02:18 · 873 阅读 · 0 评论 -
Csharp:WebClient and WebRequest use http download file
//Csharp:WebClient and WebRequest use http download file //20140318 塗聚文收錄 string filePath = "20140302.pdf"; string fileName = "http://www.dusystem.com/3.pdf";原创 2014-03-18 23:11:38 · 848 阅读 · 0 评论 -
Csharp: speech to text, text to speech in win
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy原创 2014-04-27 17:50:16 · 969 阅读 · 0 评论 -
csharp:Google TTS API text to speech
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Sy原创 2014-04-27 21:33:06 · 1130 阅读 · 0 评论 -
csharp:using Newtonsoft.Json.Net2.0 in .net 2.0 webform
/// /// http://www.weather.com.cn/data/sk/101280601.html /// {"weatherinfo":{"city":"深圳","cityid":"101280601","temp":"32","WD":"西南风","WS":"4级","SD":"68%","WSE":"4","time":"16:40","isRadar"原创 2014-06-01 14:00:53 · 949 阅读 · 0 评论 -
csharp: using using System.Web.Script.Serialization read json
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using原创 2014-06-01 15:48:20 · 966 阅读 · 0 评论 -
csharp:DropDownComboxTreeView
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Resources; using System.ComponentModel; using System.Windows.Forms; namespace Cu转载 2014-06-30 23:50:31 · 831 阅读 · 0 评论 -
csharp: Request.Form,Request.QueryString,Request.Params
/// /// Request.Form,Request.QueryString,Request.Params /// http://msdn.microsoft.com/en-us/library/system.web.httprequest.params(v=vs.110).aspx /// Geovin Du 涂聚文原创 2014-05-28 17:44:41 · 1129 阅读 · 0 评论 -
csharp: Converting chinese character to Unicode
Function chinese2unicode(Str) Dim Str_one:Str_one = "" Dim Str_unicode:Str_unicode = "" For i = 1 To Len(Str) Str_one = Mid(Str, i, 1) If AscW(Str_one) 255 Then原创 2014-07-24 15:38:34 · 807 阅读 · 0 评论 -
How can I use Server.MapPath() from global.asax?
//引用:using System.Web.Hosting; string filePathcsv = ""; string file = ""; string strFile = "LukfookGeovindu"; strFile = strFile + DateTime.Now.ToStr原创 2013-12-03 17:36:24 · 582 阅读 · 0 评论 -
csharp:存儲過程輸出參數,和返回值
/// ///塗聚文 存儲過程輸出參數,和返回值 /// 20131030 /// Geovin Du /// /// /// /// /// /// /// public DataTa原创 2013-10-30 16:57:38 · 979 阅读 · 0 评论 -
Csharp: Listview convert Datatable and ListView.Group count
/// /// 計算ListView各類子項ListViewGroup的數量 /// /// private DataTable getNumber(ListView listview) { ArrayList alist = new ArrayList();原创 2013-05-31 15:52:12 · 1018 阅读 · 0 评论 -
Csharp:Windowsform using CheckedListBox Datasource
/// /// /// /// /// private void ListboxCheckboxForm_Load(object sender, EventArgs e) { //设置CheckedListBox中第i项的Checked状态原创 2013-06-05 17:02:31 · 868 阅读 · 0 评论 -
csharp:汉字转带拼音声调
/// /// �� 塘㙍镇 ///涂聚文 20130623 ///http://zh.wiktionary.org/wiki/Wiktionary:%E9%83%A8%E9%A6%96%E7%B4%A2%E5%BC%95 /// /// /// private voi原创 2013-06-24 17:18:37 · 1344 阅读 · 0 评论 -
Csharp:TinyMCE HTML Editor in .NET WindowsForms
/// /// /// public partial class Form2 : Form { private mshtml.IHTMLDocument2 hc; private mshtml.HTMLDocument hc1; //subdir in ApplicationData Folder, chan原创 2013-06-28 17:07:16 · 925 阅读 · 0 评论 -
Csharp: TreeView 初始化设置默认选择节点
/// /// 设置查找的节点为选定节点 /// 涂聚文 /// 2013-07-15 /// /// /// /// public TreeNode srchTxtInSelectTreeView(TreeView trvToSrch, Str原创 2013-07-15 18:50:20 · 2508 阅读 · 0 评论 -
Csharp: Detect Mobile Browsers
/// /// 檢測手機客戶端 HttpCapabilitiesBase.IsMobileDevice /// .NET 4.5 /// 塗聚文注 /// public static class HttpRequestBaseExtensions { #region Private Fields // Thes原创 2013-07-17 15:33:51 · 1159 阅读 · 0 评论 -
Csharp:asp.net CheckBoxList databind
.geovindu INPUT{ color:black; border-style: none; font-family: Tahoma; font-size: 7px; margin-right: 5px}.geovindu td { /* font-size:x-large;*/ width:300px; }原创 2013-07-05 11:37:29 · 1023 阅读 · 0 评论 -
Csharp:字符串操作
public class StringControl { /// /// 客户端浏览器 /// http://en.wikipedia.org/wiki/Web_browser /// http://www.w3schools.com/browsers/browsers_stats.asp /// The原创 2013-08-07 15:41:28 · 2119 阅读 · 0 评论 -
Csharp:user WebControl Read Adobe PDF Files In Your Web Browser
namespace GeovinDu.PdfViewer{ [DefaultProperty("FilePath")] [ToolboxData("")] public class ShowPdf : WebControl { #region "Declarations" //Geovin Du 塗聚文 2原创 2013-10-10 17:25:45 · 806 阅读 · 0 评论 -
csharp:Learn how to post JSON string to generic Handler using jQuery in ASP.Net C
/// ///參考: http://james.newtonking.com/json/help/index.html# /// 塗聚文(Geovin Du) 20141228 /// 捷為工作室 /// public partial class _Default : System.Web.UI.Page { Geo原创 2014-12-28 19:47:49 · 1143 阅读 · 0 评论 -
csharp:datagridview enter Half Width and Full Width characters
/// /// 全角 /// /// /// public static string FullWidthConvertor(string unicodeString) { StringBuilder sb = new StringBuilder(256);原创 2015-02-06 15:06:11 · 657 阅读 · 0 评论 -
Csharp: read excel file using Open XML SDK 2.5
/// /// /// public class SheetNameInfo { private int _sheetId; private string _sheetName; private string _rid; /// /// ///原创 2015-08-20 09:28:04 · 1205 阅读 · 0 评论 -
csharp:百度翻译
参考:http://api.fanyi.baidu.com/api/trans/product/indexhttp://developer.baidu.com/wiki/index.php?title=%E5%B8%AE%E5%8A%A9%E6%96%87%E6%A1%A3%E9%A6%96%E9%A1%B5/%E7%99%BE%E5%BA%A6%E7%BF%BB%E8%AF%91APIw原创 2015-11-26 11:47:15 · 1227 阅读 · 0 评论 -
Fluent Nhibernate and Stored Procedures
DROP TABLE DepartmentGOCREATE TABLE Department( Id INT IDENTITY(1,1) PRIMARY KEY, DepName VARCHAR(50), PhoneNumber VARCHAR(50))GOCREATE PROCEDURE [dbo].[GetDepartmentId] ( @Id INT )AS原创 2016-03-29 23:45:16 · 764 阅读 · 0 评论 -
csharp: DataRelation objects to represent a parent/child/Level relationship
/// /// /// /// /// protected void Page_Load(object sender, EventArgs e) { var sections = new List { new原创 2016-05-24 10:54:47 · 618 阅读 · 0 评论 -
csharp: Procedure with DAO and DAL
sql script code:CREATE TABLE DuCardType( CardTypeId INT IDENTITY(1,1) PRIMARY KEY, CardTypeName NVARCHAR(100) NOT NULL, --卡类名称 CardTypeColor NVARCHAR(50) NOT NULL --卡颜色(或样本))GO原创 2016-07-04 11:32:22 · 2282 阅读 · 0 评论 -
Csharp: Create Excel Workbook or word from Template File using aspose.Word 14.5 and aspose.Cell 8.1
winform:/// /// /// /// /// private void btnGenWord_Click(object sender, EventArgs e) { Dictionary dictSource = new Dictiona原创 2016-08-04 14:16:49 · 940 阅读 · 0 评论 -
csharp:asp.net Importing or Exporting Data from Worksheets using aspose cell
using System;using System.Data;using System.Configuration;using System.Collections;using System.Collections.Generic;using System.Web;using System.Web.Security;using System.Web.UI;using System.原创 2016-08-02 11:40:01 · 969 阅读 · 0 评论 -
csharp: MySQL Stored Procedure using DAL
# 建表 塗聚文 20160907drop table attendrecord;create table attendrecord( seq INT NOT NULL PRIMARY KEY AUTO_INCREMENT, emp_no varchar(20) null, rdate datetime not null, rtime time not n原创 2021-03-05 09:32:51 · 319 阅读 · 0 评论 -
csharp: MySQL Stored Procedure using DAL
# 建表 塗聚文 20160907drop table attendrecord;create table attendrecord( seq INT NOT NULL PRIMARY KEY AUTO_INCREMENT, emp_no varchar(20) null, rdate datetime not null, rtime time not n原创 2016-09-07 11:01:01 · 878 阅读 · 0 评论 -
csharp: Export or Import excel using NPOI
excel 2003:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;原创 2015-07-31 00:22:32 · 887 阅读 · 0 评论 -
csharp: Export or Import excel using MyXls
excel 2003 (效果不太理想)using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Wi原创 2015-07-31 00:17:20 · 705 阅读 · 0 评论 -
csharp: using OleDb Getting the identity of the most recently added record
/// /// 执行SQL语句,返回影响的记录数 /// /// SQL语句 /// 影响的记录数 public static int ExecuteSql(string SQLString, params OleDbParameter[] cmdParms) { using原创 2014-12-29 23:04:08 · 661 阅读 · 0 评论 -
csharp: read excel using Aspose.Cells
/// /// /// /// /// public static System.Data.DataTable ReadExcel(String strFileName) { Workbook book = new Workbook(strFileName);原创 2015-02-28 14:43:10 · 1112 阅读 · 0 评论 -
csharp:A Custom CheckedListBox with Datasource
from A Custom CheckedListBox with Datasource http://www.codeproject.com/Articles/22960/A-Custom-CheckedListBox-with-Datasource-Implementa /// /// (eraghi) /// Custom CheckedListBox w转载 2015-05-09 21:16:05 · 625 阅读 · 0 评论 -
csharp: Oracle Metadata queries
数据类型表:TypeNameProviderDbTypeColumnSizeCreateFormatCreateParametersDataTypeBFILE14294967296BFILE System.Byte[]BLOB24294原创 2015-05-17 00:27:12 · 733 阅读 · 0 评论 -
csharp: DataTable Rename ColumnName and remove Column
enum ChangeNume { /// /// 简体 /// gbk=1, /// /// 英文 /// en=2, /// /// 繁体 ///原创 2015-07-09 20:39:42 · 1076 阅读 · 0 评论 -
csharp: Export DataSet into Excel and import all the Excel sheets to DataSet
/// /// Export DataSet into Excel /// /// /// private void Form3_Load(object sender, EventArgs e) { //Create an Emplyee DataTable Da原创 2015-07-10 17:30:29 · 795 阅读 · 0 评论