Label1.Text = ds.Tables["system"].Rows[0]["YourColumn"].ToString();

解决方案 »

  1.   

    或者Label1.Text = ds.Tables["system"].Rows[0].ItemArray[columnIndex].ToString();
      

  2.   

    同意楼上,Label1最好不要用绑定数据集。
    还是把数据表里的一个字段值给Label1.Text
      

  3.   

    string SQL="Select * from soccer_system";
    DataSet ds=new DataSet();
    SqlDataAdapter Adapter=new SqlDataAdapter(SQL,Conn);
    Adapter.Fill(ds,"system");
    Label1.Text = ds.Tables["system"].Rows[0]["YourColumn"].ToString();
    Label1.DataBind();
    这样吗?
      

  4.   

    lable 
    一般不用绑定数据集