/// <summary> /// 将一个word文档中的所有文本存放到excel的指定单元格内 /// using Excel = Microsoft.Office.Interop.Excel; /// using Word = Microsoft.Office.Interop.Word; /// </summary> /// <param name="excelPath">excel文档的路径</param> /// <param name="wordPath">word文档的路径</ Read More
posted @ 2013-06-13 11:31 梦醒心晴 Views(420) Comments(0) Diggs(0)
/// <summary> /// 截取字符串,取固定字节数,多余的用...替代,为空或者null的返回空字符串 /// </summary> /// <param name="s">要截取的字符串</param> /// <param name="len">要截取的字节数</param> /// <param name="emptyReturn">当字符串为null或者空时,返回的字符串,比如"暂未内容"之类的</param Read More
posted @ 2013-06-13 10:13 梦醒心晴 Views(329) Comments(0) Diggs(0)
主要要实现通用性,将这个小模块整合成一个便于移植的整体,还有 就是搜索功能不太清楚 到底首字母匹配要不要管? 还是在输入字符串之后 先要检测它 到底是按照 全拼搜,还是按照首字母搜 还是按照原文搜....这些个都没做考虑 全搜了... Read More
posted @ 2013-06-13 09:24 梦醒心晴 Views(266) Comments(0) Diggs(0)
添加一个webservice AutoCompleteService.asmxusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;using DB;using System.Data;using System.Data.SqlClient;using System.Configuration;/// <summary>///AutoCompleteService 的摘要说明/// </summary>[WebS Read More
posted @ 2013-06-13 09:21 梦醒心晴 Views(305) Comments(0) Diggs(0)
AjaxSearch.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AjaxSearch.aspx.cs" Inherits="AjaxSearch" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %><!DOCTY Read More
posted @ 2013-06-13 09:18 梦醒心晴 Views(250) Comments(0) Diggs(0)
界面AddArticle.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddArticle.aspx.cs" Inherits="AddArticle" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd Read More
posted @ 2013-06-13 09:16 梦醒心晴 Views(256) Comments(0) Diggs(0)
需要AjaxControlToolkit.dll支持,从网上下载,添加引用,要使用autocomplete组件 Read More
posted @ 2013-06-13 09:13 梦醒心晴 Views(158) Comments(0) Diggs(0)
使用的是 开源项目NPinyinPyCode.csusing System;using System.Collections.Generic;using System.Text;namespace NPinyin{ internal class PyCode { internal static string[] codes = new string[]{"a :阿啊吖嗄腌锕","ai :爱埃碍矮挨唉哎哀皑癌蔼艾隘捱嗳嗌嫒瑷暧砹锿霭","an :安按暗岸案俺氨胺鞍谙埯揞犴庵桉铵鹌黯","ang :昂肮盎"," Read More
posted @ 2013-06-13 09:10 梦醒心晴 Views(3693) Comments(0) Diggs(0)