06 2012 档案

摘要:/** * 将空格转换为%20 * * @param s * @return */ public String delEnt(String s) { Pattern pattern = Pattern.compile("s*\\+"); Matcher matcher = pattern.matcher(s); return matcher.replaceAll("%20"); }/** * 去掉换行符 * * @param s * @return */ ... 阅读全文
posted @ 2012-06-29 14:59 honging 阅读(135) 评论(0) 推荐(0) 编辑
摘要:public void Userinfo() { String str = flag; DataCenter d = new DataCenter(con); ByteArrayInputStream bInputStringStream = null; try { if (str != null && !str.trim().equals("")) { bInputStringStream = new ByteArrayInputStream(str.getBytes()); ... 阅读全文
posted @ 2012-06-29 14:55 honging 阅读(164) 评论(0) 推荐(0) 编辑
摘要:前段时间写了一个C#发彩信的,后来也写了一个发短信的。直接上代码,没什么区别! 1 /// <summary> 2 /// 拼接字符串 3 /// </summary> 4 /// <param name="m_content"></param> 5 /// <returns></returns> 6 public string commString(string m_content) 7 { 8 string strRtn = ""; 9 Name... 阅读全文
posted @ 2012-06-09 21:41 honging 阅读(202) 评论(0) 推荐(0) 编辑
摘要:1.从http://prdownloads.sourceforge.net/mysqldrivercs/MySQLDriverCS-n-EasyQueryTools-3.0.18.exe?download上下载MySQLDriverCS.然后安装。2.从安装目录中把MySQLDriverCS.dll.添加到.net的组件 1 public void Connect_Net() 2 { 3 MySQLConnection mycn = new MySQLConnection(new MySQLConnectionString("localhost", "t... 阅读全文
posted @ 2012-06-09 21:34 honging 阅读(181) 评论(0) 推荐(0) 编辑