说明:原数据表中的“编号”字段的数据类型
是int类型的。

解决方案 »

  1.   

    private void SetModel()
    {
    Db List=new Db();
    fbId=Request.Params["fbId"];
    if(Db.Config==null)
    {
    List.GetCon();
    }
    if(fbId!=null)
    {
    Board=Db.Board.Table.Select("Forum_Board_Id="+Int32.Parse(fbId));
    Config=Db.Config.Table.Select("Forum_Config_Id="+Board[0]["Forum_Board_Class"]);
    }
    else
    {
    Config=Db.Config.Table.Select("Forum_Config_Active='1'");
    }
    Title=Config[0]["Forum_Config_Name"].ToString()+"--"+NowPath;
    }
      

  2.   

    System.Data.DataRow[] mDrs=ds2.Tables["产品凭证"].Select("编号 = " + ProductQuantityList[i]);
    TextBox1.Text =mDrs[0]["名称"].ToString();