上一页 1 ··· 19 20 21 22 23
摘要: 汉字转换成拼音实现自动检索:Visual Studio International Pack案例:StringBuilder sbPy = new StringBuilder();String txt = "你好";foreach(char ch in txt){ ChineseChar chChar = new ChineseChar(ch); if(chChar.Pinyins.Count > 0) { sbPy.Append(chChar.Pinyins[0].Substring(0,chChar.Pinyins[0].Length)); }}//输入sbPy即 阅读全文
posted @ 2013-08-19 21:53 无处安放的青春 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 键盘上各键对应的ASCII码与扫描码vbKeyLButton 0x1 鼠标左键vbKeyRButton 0x2 鼠标右键vbKeyCancel 0x3 CANCEL 键vbKeyMButton 0x4 鼠标中键vbKeyBack 0x8 BACKSPACE 键vbKeyTab 0x9 TAB 键vbKeyClear 0xC CLEAR 键vbKeyReturn 0xD ENTER 键vbKeyShift 0x10 SHIFT 键vbKeyControl 0x11 CTRL 键vbKeyMenu 0x12 MENU 键vbKeyPause 0x13 PAUSE 键vbKeyCapital 0x1 阅读全文
posted @ 2013-07-29 15:44 无处安放的青春 阅读(3349) 评论(0) 推荐(0) 编辑
摘要: Request.ServerVariables["Url"] 返回服务器地址Request.ServerVariables["Path_Info"] 客户端提供的路径信息Request.ServerVariables["Appl_Physical_Path"] 与应用程序元数据库路径相应的物理路径Request.ServerVariables["Path_Translated"] 通过由虚拟至物理的映射后得到的路径Request.ServerVariables["Script_Name"] 执行 阅读全文
posted @ 2013-07-26 14:07 无处安放的青春 阅读(652) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Drawing;using System.Drawing.Imaging;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 System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControl 阅读全文
posted @ 2013-07-26 13:44 无处安放的青春 阅读(236) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Linq;using System.Collections.Generic;using System.Web;using System.Configuration;using System.Net;using System.IO;using System.Text;using System.Net.Security;using System.Security.Authentication;using System.Security.Cryptography.X509Certificates;/// /// 后台读取网页类,使用WebReque 阅读全文
posted @ 2013-07-26 13:41 无处安放的青春 阅读(523) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Web;using System.Web.Security;using System.Security;using System.Security.Cryptography;using System.Text;using System.IO;/// ///MD5 的摘要说明/// public class MD5{ public MD5() { // //TODO: 在此处添加构造函数逻辑 // } // 本地加密密钥(公钥) //public const s... 阅读全文
posted @ 2013-07-26 13:26 无处安放的青春 阅读(358) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;/// ///Base64 的摘要说明/// public class Base64{ public Base64() { // //TODO: 在此处添加构造函数逻辑 // } public static string Encode64(string Message) { char[] Base64Code = new char[] { ... 阅读全文
posted @ 2013-07-26 13:24 无处安放的青春 阅读(283) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Security;using System.Security;using System.Security.Cryptography;using System.Text;using System.IO;using System.Configuration;/// /// 3DES加解密类/// public class TriDES{ //密钥 //sKey必须使用英文字符,区分大小写,且字... 阅读全文
posted @ 2013-07-26 13:22 无处安放的青春 阅读(239) 评论(0) 推荐(0) 编辑
摘要: XML转换成HTML1.//装载xslXslCompiledTransform xslt = new XslCompiledTransform();xslt.Load("output.xsl");2.//执行转换和输出的结果文件xslt.Transform("Company.xml","Report.html");using System;using System.Collections.Generic;using System.Linq;using System.Web;/// ///ETDZXML 的摘要说明/// public 阅读全文
posted @ 2013-07-26 13:19 无处安放的青春 阅读(264) 评论(0) 推荐(0) 编辑
摘要: NPOI在.net中的操作Excel1、读取using (FileStream stream = new FileStream(@"c:\客户资料.xls", FileMode.Open, FileAccess.Read)){HSSFWorkbook workbook = new HSSFWorkbook(stream);MessageBox.Show(workbook.GetSheetName(0));}•读取字符串类型数据MessageBox.Show(sheet.GetRow(3).GetCell(4).StringCellValue);读取数字类型数据Numeric 阅读全文
posted @ 2013-07-26 10:51 无处安放的青春 阅读(390) 评论(0) 推荐(1) 编辑
上一页 1 ··· 19 20 21 22 23