后台~~~~~~~~~~~~    [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
    public static AjaxControlToolkit.CascadingDropDownNameValue[] GetDropDownSubject(string knownCategoryValues, string category)
    {
        Sq.BLL.TB_Regional bllSubject = new Sq.BLL.TB_Regional();
        string where = "RegionalID<>0";
         本来在这里想写:
       if(Session["code"]!=null)
        where +=" and RegionalCode='"+Session["code"].ToString()+"'"
       或是
        int ProID=Util.Getint(Request.QueryString["adsf"]);
        if(ProID>0)
           where +="and RegionalCode='"+ProID+"'"
        
        日这里跟本就不能出Request.QueryString或是什么session
        
    
        List<Sq.Model.TB_Regional> liSubject = bllSubject.GetList(" top 50 *", "" + where + "", "");        List<CascadingDropDownNameValue> values = new List<CascadingDropDownNameValue>();        foreach (Sq.Model.TB_Regional mSubject in liSubject)
        {
            values.Add(new CascadingDropDownNameValue(mSubject.RegionalName, mSubject.RegionalID.ToString()));
        }
        return values.ToArray();
    }
前台~~~~~~~~~~~~
                                <asp:DropDownList ID="DDLQ" runat="server">
                                </asp:DropDownList>
<ajax:CascadingDropDown ID="CascadingDropDown1" runat="server" LoadingText="大类加载中..."
PromptText="请选择大类" Category="Province" ServiceMethod="GetDropDownSubject" TargetControlID="DDLQ">
                                </ajax:CascadingDropDown>
总结:就是怎么给红色部份传参数呢?搞了一天,郁闷