SqlDataAdapter myCommand = new SqlDataAdapter("select content from ZhuFu where ZhuFuID="+id,myConnection);
用这个试试。。

解决方案 »

  1.   


    SqlDataAdapter myCommand = new SqlDataAdapter("select content from ZhuFu where ZhuFuID="+System.Convert.ToInt32(Id),myConnection);
      

  2.   

    没看完你的程序,可是按一开始所说的,要换成int的,看看这样行不行if (!Request.Params["id"]=null)
    { int id=int.Parse(Requset.Params["id"].ToString());}请赐教。
      

  3.   

    String id=Request.QueryString["id"].ToString;
      

  4.   

    string idString = "";
     if (Request.Params["id"] != null)
     idString = Request.Params["id"];
     if (idString != "")
        {
         int ID = Int32.Parse(idString);
        }...
     SqlDataAdapter myCommand = new SqlDataAdapter("select content from ZhuFu where ZhuFuID=" +ID,myConnection);
    ...YOU TRY:
      

  5.   

    多谢大家,问题解决了。knightisso(藤井树)的方法以解决。
    catchcat(ccy) 的int id=int.Parse(Requset.Params["id"].ToString());语句页可以以实现。但是if (!Request.Params["id"]=null)会出错。