easyui tree动态加载



 后台

 public void ProcessRequest(HttpContext context)
        {
           string sid="root";
           if (context.Request.Form["sid"]!=null)
            sid = context.Request.Form["sid"].ToString();
            context.Response.Write(dataconnection_sql.RunSqlGetJson("SELECT  t.id,t.t_text as text,t.t_value,t.t_parend,'closed' as state,t.t_attributes,t.t_typeid,t.t_order FROM  [A_type] t where t_parend=N'"+sid+"'"));
            context.Response.End();
        }


前台



 

     
     

    你可能感兴趣的:(easyui tree动态加载)