没有仔细看,
用request.querystring["catid"]
看看行不行

解决方案 »

  1.   

    http://lollygagger.org/artists/manfish/GeorgieW.swf请将他发个你所有的在线网友!看到的人请将这个发给你的所有网友!!!
    打倒美帝国!!!
    布屎下台!!!
      

  2.   

    write out your xml, it is probably invalid, try to open it in the browser to see what's wrong
      

  3.   

    出现错误信息如下:
    第 1 行: 'CategoryID' 附近有语法错误。 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 第 1 行: 'CategoryID' 附近有语法错误。Source Error: 
    Line 28:  conNorthwind.Open ();
    Line 29:  DataSet dstProducts =new DataSet() ;
    Line 30:  dstProducts.ReadXml (cmdProducts.ExecuteXmlReader(),XmlReadMode.Fragment  );
    Line 31:  dstProducts.DataSetName  ="TREENODES";
    Line 32:  dstProducts.WriteXml (Response.OutputStream );
     Source File: c:\inetpub\wwwroot\onlytest\products.aspx.cs    Line: 30 要怎么解决???
      

  4.   

    我知道是什么地方出错了,只要string strQuery;
    后面加多一个语句:SqlParameter sqlCatid=new SqlParameter ("@categoryID",Request.QueryString.Get ["catid"]);然后把cmdProducts.Parameters .Add(new SqlParameter ("@categoryID",Request.QueryString.Get ["catid"]));改成cmdProducts.Parameters .Add(sqlCatid);