摘要: 1、场景1 替换单纯收个字母大写调用 string s1 = "samuel allen"; string changestr=TextTools.UpperFirst(s1)类方法 public static class TextTools { /// <summary> /// Uppercase first letters of all words in the string. /// </summary> public static string UpperFirst(string s) { return Regex.Replace(s, @ 阅读全文
posted @ 2012-07-05 13:43 刘颖 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 将汉字转换成拼音,由于汉字有多音字,所以转换拼音是让人很头疼的一个问题,我想到了一个解决这个问题的办法,就是将每个字的音节都读出来,然后进行拼音重组,这样总有一组拼音是正确的,然后在根据全文搜索技术,就能找到想要的记录了,本人不才自己写了个方法,贴出了,跟大家分享一下,希望多批评指正!!using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.International.Converters.PinYinConverter;namespace Chinese 阅读全文
posted @ 2012-02-10 11:05 刘颖 阅读(1474) 评论(0) 推荐(0) 编辑
摘要: <HTML>2<HEAD>3<scriptlanguage="JavaScript">4function openFile(){5var of=newActiveXObject("MSComDlg.CommonDialog");6//fd.Filter="图片文件l(*.jpg|*.jpg";7 of.Filter="*.*";8 of.FilterIndex=2;9//mustsetting10 of.MaxFileSize=128;11 of.ShowSave();//显示保 阅读全文
posted @ 2011-06-29 09:41 刘颖 阅读(1309) 评论(0) 推荐(0) 编辑
摘要: select a.* from openrowset('SQLOLEDB','192.168.1.1\Sqlexpress';'sa';'123456','select * from temp.dbo.Act as a where a.actid in(11,22,33,33) roder by id') a inner join dbo.newtemp b on b.id=a.id 阅读全文
posted @ 2011-06-17 14:45 刘颖 阅读(141) 评论(1) 推荐(0) 编辑
摘要: http://www.cnblogs.com/qleelulu/archive/2008/10/05/1303997.html 阅读全文
posted @ 2011-06-16 17:54 刘颖 阅读(123) 评论(0) 推荐(0) 编辑