1  ds.Tables[0].Rows[0]["Field_Name"].ToString()
 2  Image1.visiable = true;

解决方案 »

  1.   

    txtName.Text=dsAll.Tables["djsbb"].Rows[0][0].ToString()Image1.ImageUrl=imagePath正确foreach可以变通一下纪录当前循环数字i,然后继续
      

  2.   

    for(int i=0;i<dsA11.Tables["djsbb"].Columns.Count;i++){
    txtName.Text=dsAll.Tables["djsbb"].Rows[0][i].tostring()}可以取到所有的列.2.给image控件的imageurl赋值,Image1.ImageUrl=imagePath;也没有显示图片,
       Image1.visiable = true;如還不行的話, 可能是你給的路徑有問題.
      

  3.   

    to xhan2000
    关于foreach能举个例子吗?
      

  4.   

    1  ds.Tables[0].Rows[0]["Field_Name"].ToString();
    2  Image1.visiable = true; 还有url要正确
    3  没试过,估计够戗能行吧,去搜索一下以前的帖子看看先
      

  5.   

    int i
    i=(int)textbox1.text
    为什么无法将string转换为int类型
      

  6.   

    类型转换用
    i=Convert.ToInt32(textbox1.text)