Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BusinessBLL.SiteService service = new BusinessBLL.SiteService();

            StringBuilder result = new StringBuilder();

            //max siteid 61

            result.Append("{");

            //网站列表
            result.Append("\"site_list\":");
            result.Append(service.GetSiteList());

            //外部词典
            result.Append(",\"ext_dic\":");
            result.Append(service.GetExtDic());

            //停止词典
            result.Append(",\"stop_dic\":");
            result.Append(service.GetStopDic());

            //删除词典
            result.Append(",\"del_dic\":[]");

            result.Append("}");

            Response.Write(result.ToString());
            Response.End();
        }
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BusinessBLL.SiteService service = new BusinessBLL.SiteService();

            StringBuilder result = new StringBuilder();

            //具体对象
            result.Append(service.GetSiteList());

            Response.Write(result.ToString());
            Response.End();
        }
    }