资源简介

参考了一些网上资源,自己修改调试了,比较简单,但是也可以耦合为一个小工具,算是弥补一下.net的web工具箱吧

资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.xml.Linq;
using System.Text;

public partial class AutoComplete_data : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {
        if (!IsPostBack)
        {
            //bool flag = true;
            //Response.Write(flag ? “1“ : “0“);

            Response.Clear();
            Response.Charset = “utf-8“;
            Response.Buffer = true;
            this.EnableViewState = false;
            Response.ContentEncoding = System.Text.Encoding.UTF8;
            Response.ContentType = “text/plain“;
            Response.Write(GetUserName());
            Response.Flush();
            Response.Close();
            Response.End();
        }
    }
    private string GetLikeUserName()
    {
        string[] str = { “January“ “Ceshi“ “jQuery“ “josn“ “February“ “March“ “April“ “May“ “June“ “July“ “August“ “September“ “October“ “November“ “December“ };
        StringBuilder sbstr = new StringBuilder();
        sbstr.Append(“[“); 
        for (int i = 0; i < str.Length; i++)
        {
            if (i == str.Length - 1)
            {
                sbstr.Append(“{name:‘“ + str[i] + “‘to:‘“ +  “‘}“);
            }
            else
            {
                sbstr.Append(“{name:‘“ + str[i] + “‘to:‘“ +  “‘}“);
            }
        }
        sbstr.Append(“]“);

        return sbstr.ToString();
    }
    private string GetUserName()
    {
        string[] str = {“xuyuan““yuan““yu“ };
        StringBuilder sbstr = new StringBuilder();
        sbstr.Append(“[“);
        for (int i = 0; i < str.Length; i++)
        {
            if (i == str.Length - 1)
            {
                sbstr.Append(“{name:‘“ + str[i] + “‘to:‘“ + “‘}“);
            }
            else
            {
                sbstr.Append(“{name:‘“ + str[i] + “‘to:‘“ + “‘}“);
            }
        }
        sbstr.Append(“]“);

        return sbstr.ToString();
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-11-20 09:54  AutoComplete\
     目录           0  2013-11-20 09:44  AutoComplete\App_Code\
     文件        1577  2013-11-20 09:44  AutoComplete\AutoComplete.sln
     文件       20992  2013-11-21 14:20  AutoComplete\AutoComplete.suo
     目录           0  2013-11-20 09:44  AutoComplete\Backup\
     目录           0  2013-11-20 09:44  AutoComplete\Backup\AutoComplete\
     文件        1559  2009-12-09 13:53  AutoComplete\Backup\AutoComplete.sln
     文件        9728  2009-12-09 13:55  AutoComplete\Backup\AutoComplete.suo
     文件        1559  2009-12-09 13:53  AutoComplete\Backup\AutoComplete\AutoComplete.sln
     目录           0  2013-11-20 09:44  AutoComplete\Backup\AutoComplete\Backup\
     文件        1559  2009-12-09 13:53  AutoComplete\Backup\AutoComplete\Backup\AutoComplete.sln
     目录           0  2013-11-20 09:44  AutoComplete\Backup\AutoComplete\css\
     文件         797  2009-11-28 23:02  AutoComplete\Backup\AutoComplete\css\jquery.autocomplete.css
     文件        1186  2009-11-28 23:02  AutoComplete\Backup\AutoComplete\css\main.css
     文件        4012  2009-11-28 23:02  AutoComplete\Backup\AutoComplete\css\thickbox.css
     文件         449  2009-11-28 23:55  AutoComplete\Backup\AutoComplete\data.aspx
     文件        1784  2009-12-01 09:57  AutoComplete\Backup\AutoComplete\data.aspx.cs
     目录           0  2013-11-20 09:44  AutoComplete\Backup\AutoComplete\js\
     文件      120763  2009-12-08 11:09  AutoComplete\Backup\AutoComplete\js\jquery-1.3.2.js
     文件       19959  2009-12-08 11:06  AutoComplete\Backup\AutoComplete\js\jquery.autocomplete.js
     文件       15038  2009-11-28 23:19  AutoComplete\Backup\AutoComplete\js\localdata.js
     文件        9032  2009-11-28 23:22  AutoComplete\Backup\AutoComplete\Search.aspx
     文件         464  2009-11-26 20:58  AutoComplete\Backup\AutoComplete\Search.aspx.cs
     文件        4275  2009-12-09 13:55  AutoComplete\Backup\AutoComplete\test.aspx
     文件         462  2009-11-28 23:19  AutoComplete\Backup\AutoComplete\test.aspx.cs
     文件         159  2013-11-20 09:44  AutoComplete\Backup\AutoComplete\UpgradeLog.xml
     文件        7797  2009-12-09 13:53  AutoComplete\Backup\AutoComplete\Web.config
     目录           0  2013-11-20 09:54  AutoComplete\Bin\
     文件     7296512  2013-10-06 11:51  AutoComplete\Bin\AjaxControlToolkit.dll
     文件          62  2013-11-20 09:54  AutoComplete\Bin\AjaxControlToolkit.dll.refresh
     文件     1715712  2013-10-06 11:51  AutoComplete\Bin\AjaxControlToolkit.pdb
............此处省略115个文件信息

评论

共有 条评论